DragonFly BSD
DragonFly commits List (threaded) for 2011-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Peter Avalos <pavalos@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 21 Aug 2011 16:32:10 -0700 (PDT)

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]