diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /pkg/language/doc/envget.hlp | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/language/doc/envget.hlp')
-rw-r--r-- | pkg/language/doc/envget.hlp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkg/language/doc/envget.hlp b/pkg/language/doc/envget.hlp new file mode 100644 index 00000000..ffed68e0 --- /dev/null +++ b/pkg/language/doc/envget.hlp @@ -0,0 +1,30 @@ +.help envget Feb86 language +.ih +NAME +envget -- get the string value of an environment variable +.ih +USAGE +envget varname +.ih +PARAMETERS +.ls varname +The environment variable whose value is to be returned. +.le +.ih +DESCRIPTION +\fIEnvget\fR returns the string value of the named environment variable. +The user is prompted for the value if the variable has not yet been defined. +.ih +EXAMPLES +1. Construct a filename using the value of the environment variable +"editor", and page the file thus named. + + cl> page ("dev$" // envget ("editor") // ".ed") + +2. Compute and print the center line on the terminal screen. + + cl> = ((int (envget ("ttynlines")) + 1) / 2) +.ih +SEE ALSO +set, show +.endhelp |