fish-shell/doc_src/pwd.txt
ridiculousfish 0f0bb1e10f Don't resolve symlinks with cd
This switches fish to a "virtual" PWD, where it no longer uses getcwd to
discover its PWD but instead synthesizes it based on normalizing cd against
the $PWD variable.

Both pwd and $PWD contain the virtual path. pwd is taught about -P to
return the physical path, and -L the logical path (which is the default).

Fixes #3350
2018-10-06 17:03:18 -07:00

16 lines
420 B
Text

\section pwd pwd - output the current working directory
\subsection pwd-synopsis Synopsis
\fish{synopsis}
pwd
\endfish
\subsection pwd-description Description
`pwd` outputs (prints) the current working directory.
The following options are available:
- `-L`, Output the logical working directory, without resolving symlinks (default behavior).
- `-P`, Output the physical working directory, with symlinks resolved.