George Herson <gherson@snet.net> wrote:
> $ bash -c 'set -n; . /tmp/tmpscript2'
> $ bash -n /tmp/tmpscript2
> /tmp/tmpscript2: line 1: syntax error near unexpected token `(hello'
> /tmp/tmpscript2: line 1: `echo (hello'
>
>
> Thanks. The first form didn't have output but the second did.
Oops, right. The command to source the script doesn't get executed,
because set -n is in effect.
paul