summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2014-06-30 10:15:26 +0100
committerPádraig Brady <P@draigBrady.com>2014-06-30 10:27:48 +0100
commit3e89d5bb9b34861c17cd23f5efd8323eec4f0bab (patch)
treeeba49317d57cc4c42db3e3bf2aa96102b37de23c /tests
parentacb422bdd1b325285bb46883f02d8fc6402efd14 (diff)
downloadcoreutils-3e89d5bb9b34861c17cd23f5efd8323eec4f0bab.tar.xz
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.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/misc/pwd-option.sh5
1 files changed, 1 insertions, 4 deletions
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.