HEX
Server: Apache
System: Linux pdx1-shared-a2-09 6.6.116-grsec-jammy-dirty #1 SMP Sat Nov 8 00:02:42 UTC 2025 x86_64
User: dh_pvsc7i (5084578)
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;
}