git: sh: Implement the cd -e flag proposed for the next POSIX issue.
pavalos at crater.dragonflybsd.org
Sun Aug 21 16:33:09 PDT 2011
Author: Peter Avalos <pavalos at dragonflybsd.org>
Date: Mon Jul 4 17:40:08 2011 -1000
sh: Implement the cd -e flag proposed for the next POSIX issue.
This reflects failure to determine the pathname of the new directory in
the exit status (1). Normally, cd returns successfully if it did
chdir() and the call was successful.
In POSIX, -e only has meaning with -P; because our -L is not entirely
compliant and may fall back to -P mode, -e has some effect with -L as
Obtained-from: FreeBSD SVN rev 222154
Summary of changes:
bin/sh/cd.c | 27 +++++++++++++++-------
bin/sh/sh.1 | 15 ++++++++++--
tools/regression/bin/sh/builtins/cd3.0 | 21 +++++++++++++++++
tools/regression/bin/sh/builtins/cd4.0 | 38 ++++++++++++++++++++++++++++++++
4 files changed, 89 insertions(+), 12 deletions(-)
create mode 100644 tools/regression/bin/sh/builtins/cd3.0
create mode 100644 tools/regression/bin/sh/builtins/cd4.0
DragonFly BSD source repository
More information about the Commits