diff options
author | jilles <jilles@FreeBSD.org> | 2010-04-17 14:35:46 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-04-17 14:35:46 +0000 |
commit | 286029c47836178eb034bb3cff6b884f0a4ed74d (patch) | |
tree | bb356bbe40acadf8907130038ede6c0a505c1777 /bin/cat | |
parent | 66c04c10a0daa86550d2714dec2c47bd88f184b3 (diff) | |
download | FreeBSD-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