git: sh: Implement the cd -e flag proposed for the next POSIX is

看板DFBSD_commit作者時間14年前 (2011/08/22 08:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1EKPnGYN (DFBSD_commit)