/usr/share/slsh/help/require.hlp is in slsh 2.3.0-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | _featurep
SYNOPSIS
Test whether or not a feature is present
USAGE
Int_Type _featurep (String_Type feature [,String_Type namespace])
DESCRIPTION
The `_featurep' function returns a non-zero value if the specified
feature is present. Otherwise, it returns 0 to indicate that the feature
has not been loaded.
SEE ALSO
require, provide
--------------------------------------------------------------
provide
SYNOPSIS
Declare that a specified feature is available
USAGE
provide (String_Type feature [,String_Type namespace])
DESCRIPTION
The `provide' function may be used to declare that a "feature" has
been loaded into the specified namespace. If the namespace argument is not
present, the current namespace will be used.
See the documentation for `require' for more information.
SEE ALSO
require, _featurep
--------------------------------------------------------------
require
SYNOPSIS
Make sure a feature is present, and load it if not
USAGE
require (feature [,namespace [,file]])
String_Type feature, namespace, file;
DESCRIPTION
The `require' function ensures that a specified "feature" is present.
If the feature is not present, the `require' function will attempt to
load the feature from a file. If the `namespace' argument is present
and non-NULL, the specified namespace will be used. The default is to use
the current non-anonymous namespace. If called with three arguments, the
feature will be loaded from the file specified by the third argument
if it does not already exist in the namespace. Otherwise, the feature
will be loaded from a file given by the name of the feature, with
".sl" appended.
If after loading the file, if the feature is not present,
a warning message will be issued.
EXAMPLE
require ("histogram");
require ("histogram", "foo");
require ("histogram", "foo", "/home/bob/hist.sl");
require ("histogram", ,"/home/bob/hist.sl");
NOTES
"feature" is an abstract quantity that is undefined here.
A popular use of the `require' function is to ensure that a specified
file has already been loaded. In this case, the feature is the
filename itself. The advantage of using this mechanism over using
`evalfile' is that if the file has already been loaded, `require'
will not re-load it.
SEE ALSO
provide, _featurep, evalfile
--------------------------------------------------------------
|