"Adam Monsen" <[EMAIL PROTECTED]> wrote: > foo() > { > local TICKED=`false` > echo RV: $? > } > > foo > # prints "RV: 0", but I would expect "RV: 1"
You get 0 here because that's the status from the "local" command. To get the status from a backtick command, you need the assignment to be alone, not part of another command: foo() { local TICKED TICKED=`false` echo RV: $? } paul _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash