summaryrefslogtreecommitdiffstats
path: root/bin/cat
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-04-17 14:35:46 +0000
committerjilles <jilles@FreeBSD.org>2010-04-17 14:35:46 +0000
commit286029c47836178eb034bb3cff6b884f0a4ed74d (patch)
treebb356bbe40acadf8907130038ede6c0a505c1777 /bin/cat
parent66c04c10a0daa86550d2714dec2c47bd88f184b3 (diff)
downloadFreeBSD-src-286029c47836178eb034bb3cff6b884f0a4ed74d.zip
FreeBSD-src-286029c47836178eb034bb3cff6b884f0a4ed74d.tar.gz
sh: On startup of the shell, use PWD from the environment if it is valid.
Unset PWD if it is incorrect and no value for it can be determined. This preserves the logical current directory across shell invocations. Example (assuming /home is a symlink): $ cd $ pwd /home/foo $ sh $ pwd /home/foo Formerly the second pwd would show the physical path (symlinks resolved).
Diffstat (limited to 'bin/cat')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud