mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-21 11:16:16 +02:00
pwd: revert default mode back to -P
Revert commit v8.22-131-g3e89d5b as even though POSIX states that the default mode should be -L, common practice for stand-alone pwd implementations is to default to -P. * src/pwd.c (usage): Retain mention of the default mode of operation. Suggested by Bob Proulx
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user