HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/slsh/slshhelp.sl
require ("glob");

define slsh_get_doc_string (obj)
{
   variable help = get_doc_string_from_file (obj);
   if (help != NULL)
     return help;

   variable path = get_slang_load_path ();
   variable delim = path_get_delimiter ();
   foreach (strtok (path, char (delim)))
     {
	variable dir = ();
	dir = path_concat (dir, "help");
	foreach (glob (path_concat (dir, "*.hlp")))
	  {
	     variable file = ();
	     help = get_doc_string_from_file (file, obj);
	     if (help != NULL)
	       return help;
	  }
     }
   return NULL;
}