aboutsummaryrefslogtreecommitdiff
path: root/pkg/language/doc/which.hlp
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /pkg/language/doc/which.hlp
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/language/doc/which.hlp')
-rw-r--r--pkg/language/doc/which.hlp45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkg/language/doc/which.hlp b/pkg/language/doc/which.hlp
new file mode 100644
index 00000000..54d50f3c
--- /dev/null
+++ b/pkg/language/doc/which.hlp
@@ -0,0 +1,45 @@
+.help "which,whereis" Mar04 language
+.ih
+NAME
+.nf
+which -- locate a task in the package list
+whereis -- locate all occurrences of a task in the package list
+.fi
+.ih
+USAGE
+.nf
+which [task] [...]
+whereis [task] [...]
+.fi
+.ih
+PARAMETERS
+.ls task
+Name of task to be located.
+.le
+.ih
+DESCRIPTION
+The \fIwhich\fR command returns the first occurrence of a task in the currently
+loaded package list. The \fIwhereis\fR command returns all occurrences of that
+task in the package list. More than one task may be supplied on the command
+line, unique abbreviations for task names are permitted.
+
+These commands are similar to the UNIX commands of the same name. Users should
+note that \fIonly\fR the currently loaded packages are searched.
+.ih
+EXAMPLES
+1. Find out which package contains the HEAD task.
+.nf
+
+ cl> which head
+ system
+.fi
+
+2. Find all currently loaded package which contain the SPLOT task.
+.nf
+
+ cl> whereis splot
+ echelle onedspec
+.fi
+.ih
+SEE ALSO
+.endhelp