mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 07:43:18 +08:00
0f0bb1e10f
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
17 lines
420 B
Plaintext
17 lines
420 B
Plaintext
\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.
|