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

git: sh: Skip vars with invalid names in "set", "export -p", "readonly -p".


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

commit 6a2acd5391a461a9359149fd9f93283b222b8e5e
Author: Peter Avalos <pavalos@dragonflybsd.org>
Date:   Sun Aug 21 14:39:50 2011 -0700

    sh: Skip vars with invalid names in "set", "export -p", "readonly -p".
    
    This ensures the output of these commands is valid shell input.
    
    Obtained-from:   FreeBSD 223183

Summary of changes:
 bin/sh/var.c                               |   15 ++++++++++++++-
 tools/regression/bin/sh/builtins/export1.0 |    3 +++
 tools/regression/bin/sh/builtins/set2.0    |    3 +++
 3 files changed, 20 insertions(+), 1 deletions(-)
 create mode 100644 tools/regression/bin/sh/builtins/export1.0
 create mode 100644 tools/regression/bin/sh/builtins/set2.0

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6a2acd5391a461a9359149fd9f93283b222b8e5e


-- 
DragonFly BSD source repository



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