diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/misc/pwd-option.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/misc/pwd-option.sh b/tests/misc/pwd-option.sh index 9b4664d34..0eba9429c 100755 --- a/tests/misc/pwd-option.sh +++ b/tests/misc/pwd-option.sh @@ -40,8 +40,11 @@ printf %s\\n "$base/a/b" >> exp || fail=1 env -- pwd --physical >> out || fail=1 printf %s\\n "$base/a/b" >> exp || fail=1 -# By default, we use -L like POSIX and various shells. +# By default, we use -P unless POSIXLY_CORRECT. env -- pwd >> out || fail=1 +printf %s\\n "$base/a/b" >> exp || fail=1 + +env -- POSIXLY_CORRECT=1 pwd >> out || fail=1 printf %s\\n "$base/c" >> exp || fail=1 # Make sure we reject bogus values, and silently fall back to -P. |