PWD

From STX Wiki
< Programmer Guide‎ | Command Reference
Revision as of 10:37, 13 December 2016 by Jw (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
var := PWD [ directory ]

Set and or get current working directory. The directory is not changed if directory is omitted.

Either way, the command will return the current working directory on success, or an empty string on failure (e.g. when you have tried to change to a non-existent directory).

Note that if you are working with scripts, the script directory is stored in the shell variable scriptDirectory. See also @ROOT and @WORK.

Navigation menu

Personal tools