看板 DFBSD_commit 關於我們 聯絡資訊
commit 8c603ea46b38bbd10c1adbb01739f179e69edf99 Author: Peter Avalos <pavalos@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 well. 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 http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8c603ea46b38bbd10c1adbb01739f179e69edf99 -- DragonFly BSD source repository