|
|
@@ -577,7 +577,7 @@ for cmd in $cmds; do
|
|
|
echo "exec 1<&3-" >>$tmpfile
|
|
|
echo "unset PWD SHLVL" >>$tmpfile
|
|
|
echo "env |\\" >>$tmpfile
|
|
|
- echo "egrep '^[A-Z]*=.' |\\" >>$tmpfile
|
|
|
+ echo "egrep '^[A-Z_][A-Z0-9_]*=.' |\\" >>$tmpfile
|
|
|
echo "sed -e 's/\\\\/\\\\\\\\/g' -e 's/\"/\\\\\"/g' \\" >>$tmpfile
|
|
|
case $SHELL in
|
|
|
csh|*/csh|tcsh|*/tcsh )
|