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

git: sh: Test that . /dev/null returns exit status 0 and does not preserve $?.


From: Peter Avalos <pavalos@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 25 Dec 2011 10:09:07 -0800 (PST)

commit dbdce6a73b0458db3f9dec0f4a3de3100aff5566
Author: Peter Avalos <pavalos@dragonflybsd.org>
Date:   Sun Dec 25 09:43:46 2011 -0800

    sh: Test that . /dev/null returns exit status 0 and does not preserve $?.
    
    Preserving $? may cause problems particularly if set -e is in effect.
    
    It may be useful to preserve the old value of $? in the dot script but this
    must not be implemented in such a way that it would break this test.
    
    Obtained-from:  FreeBSD 219390

Summary of changes:
 tools/regression/bin/sh/builtins/dot3.0 |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
 create mode 100644 tools/regression/bin/sh/builtins/dot3.0

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/dbdce6a73b0458db3f9dec0f4a3de3100aff5566


-- 
DragonFly BSD source repository



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