opnsense-src/tools/regression/bin/sh/builtins/export1.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
64 B
Text

# $FreeBSD$
env @badness=1 ${SH} -c 'v=`export -p`; eval "$v"'