aboutsummaryrefslogtreecommitdiff
path: root/pkg/language/doc/chdir.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/chdir.hlp
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/language/doc/chdir.hlp')
-rw-r--r--pkg/language/doc/chdir.hlp62
1 files changed, 62 insertions, 0 deletions
diff --git a/pkg/language/doc/chdir.hlp b/pkg/language/doc/chdir.hlp
new file mode 100644
index 00000000..112f135d
--- /dev/null
+++ b/pkg/language/doc/chdir.hlp
@@ -0,0 +1,62 @@
+.help chdir,cd Feb86 language
+.ih
+NAME
+chdir, cd -- change the current working directory
+.ih
+USAGE
+chdir [newdir] or cd [newdir]
+.ih
+PARAMETERS
+.ls newdir
+The new working directory.
+The special name "." refers to the current directory; ".." refers to the next
+higher directory.
+.le
+.ih
+DESCRIPTION
+\fIChdir\fR is used to change the current working directory.
+When called without any arguments, \fIchdir\fR sets the default directory
+to "home$", the users home directory.
+The new directory can be specified as an IRAF logical name,
+as a sub-directory of the current directory,
+as a path from either a logical directory or the current directory,
+or as an operating system dependent name.
+
+The names \fIchdir\fR and \fIcd\fR are synonyms. Note that the command
+\fIback\fR may be called after a \fIchdir\fR to return to the previous
+directory without typing its name.
+.ih
+EXAMPLES
+1. Return to our home directory.
+
+ cl> cd
+
+2. Go to the package logical directory "pkg$".
+
+ cl> chdir pkg
+
+3. Go down one level to the directory "dataio", a subdirectory of "pkg".
+
+ cl> cd dataio
+
+4. From "dataio", go back up to "pkg" and down into "images".
+
+ cl> cd ../images
+
+5. Go to the "tv" directory, a subdirectory of "images", regardless of the
+current directory
+
+ cl> cd pkg$images/tv
+
+6. On a VMS system, define a new logical directory on a different disk device
+and go there. Note that the character $ is not permitted in host file or
+directory names.
+
+.nf
+ cl> set dd = scr1:[data]
+ cl> cd dd
+.fi
+.ih
+SEE ALSO
+back, pathnames
+.endhelp