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

Peter Avalos pavalos at crater.dragonflybsd.org
Sun Aug 21 16:33:33 PDT 2011


commit 6a2acd5391a461a9359149fd9f93283b222b8e5e
Author: Peter Avalos <pavalos at 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





More information about the Commits mailing list