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

git: sh: Add test for exit status of for loop without items.


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

commit c7e5ca9174c054125469d531b6f5726b7d557e61
Author: Peter Avalos <pavalos@dragonflybsd.org>
Date:   Sun Dec 25 09:35:56 2011 -0800

    sh: Add test for exit status of for loop without items.
    
    POSIX says the exit status of a for loop without any items shall be 0.
    There are no exceptions if the exit status of the previous command was
    not 0 or if the item list contains a command substitution with non-zero
    exit status.
    
    Obtained-from:  FreeBSD 226892

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

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


-- 
DragonFly BSD source repository



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