From 3e89d5bb9b34861c17cd23f5efd8323eec4f0bab Mon Sep 17 00:00:00 2001 From: Pádraig Brady
Date: Mon, 30 Jun 2014 10:15:26 +0100 Subject: pwd: assume -L mode by default, as per POSIX * src/pwd.c (main): Adjust default mode to be "logical" and independent of the POSIXLY_CORRECT env var. (usage): Mention the default mode of operation. * doc/coreutils.texi (pwd invocation): Adjust accordingly. * tests/misc/pwd-option.sh: Likewise. * NEWS: Mention the change in behavior. --- tests/misc/pwd-option.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/misc/pwd-option.sh b/tests/misc/pwd-option.sh index afb94877a..983726b66 100755 --- a/tests/misc/pwd-option.sh +++ b/tests/misc/pwd-option.sh @@ -40,11 +40,8 @@ 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 -P unless POSIXLY_CORRECT. +# By default, we use -L like POSIX and various shells. 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. -- cgit v1.2.3-70-g09d2