sh: Skip vars with invalid names in "set", "export -p", "readonly -p".
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 21 Aug 2011 21:39:50 +0000 (14:39 -0700)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 21 Aug 2011 21:39:50 +0000 (14:39 -0700)
commit6a2acd5391a461a9359149fd9f93283b222b8e5e
tree05c6647ed5acf2ea8b49c5a05d63d1e5e6b22b74
parentf15f366852663832eb02933efecc062dbff4bc59
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
bin/sh/var.c
tools/regression/bin/sh/builtins/export1.0 [new file with mode: 0644]
tools/regression/bin/sh/builtins/set2.0 [new file with mode: 0644]