Re: subshell vs. su and +e

2007-07-21 Thread Andreas Schwab
"BuraphaLinux Server" <[EMAIL PROTECTED]> writes: > su -p nobody -s /sbin/bash << EOF > export HOME=/tmp > # turn off error crashing and turn on tracing > set +e -x > # begin the non-root stuff here > cd /tmp/mindy > shazbot is not a valid command > if ((${?}!=0)) # <--- ${?} is zero here not 12

subshell vs. su and +e

2007-07-20 Thread BuraphaLinux Server
This script, when run as root, gives me this: BLS #./psycho + umask 0022 + mkdir /tmp/mindy + chown nobody.nobody /tmp/mindy + set +e + su -p nobody -s /sbin/bash + cd /tmp/mindy + shazbot is not a valid command /bin/sh: line 6: shazbot: command not found + (( 0!=0 )) + echo 'should not ever get