mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-30 14:53:11 +00: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
16 lines
420 B
Text
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.
|