opnsense-src/tools/regression/bin/sh/builtins/set2.0
Jilles Tjoelker f5f215e251 sh: Skip variables with invalid names in "set", "export -p", "readonly -p".
This ensures the output of these commands is valid shell input.
2011-06-17 10:21:24 +00:00

3 lines
81 B
Text

# $FreeBSD$
! env @badness=1 ${SH} -c 'v=`set`; eval "$v"' 2>&1 | grep @badness