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

git: sh: Fix unquoted $@/$* if IFS=''.


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

commit 5b14c76dd79484f6131bc857929bd01f68ca8736
Author: Peter Avalos <pavalos@dragonflybsd.org>
Date:   Sun Aug 21 12:39:23 2011 -0700

    sh: Fix unquoted $@/$* if IFS=''.
    
    If IFS is null, unquoted $@/$* should still expand to separate words.
    This differs from quoted $@ (which does not depend on IFS) in that
    pathname generation is performed and empty words are removed.
    
    Obtained-from:   FreeBSD 222361

Summary of changes:
 bin/sh/expand.c                          |    9 ++++--
 tools/regression/bin/sh/expansion/ifs4.0 |   39 ++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+), 3 deletions(-)
 create mode 100644 tools/regression/bin/sh/expansion/ifs4.0

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5b14c76dd79484f6131bc857929bd01f68ca8736


-- 
DragonFly BSD source repository



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