freebsd-dev/tools/regression/bin/sh/parameters
Jilles Tjoelker 8eac1f9477 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).
2010-04-17 14:35:46 +00:00
..
exitstatus1.0
mail1.0
mail2.0 sh: Make sure the mail2.0 test can actually fail if $MAIL is not touched. 2010-02-08 18:57:18 +00:00
pwd1.0 sh: Test that bogus values of PWD are not imported from the environment. 2010-04-11 20:21:34 +00:00
pwd2.0 sh: On startup of the shell, use PWD from the environment if it is valid. 2010-04-17 14:35:46 +00:00