Mail Archives: djgpp-workers/2000/07/24/01:55:11
On Sun, 23 Jul 2000, Richard Dawe wrote:
> It turned out that I was actually using bash 1.14.7. I upgraded to bash
> 2.03 and retested. The above commands work correctly in interactive mode
> under bash 2.03, unlike under bash 1.14.7. However, compound commands
> don't seem to work correctly in scripts. If I run the attached script,
> testcomp.sh, I get the following output:
>
> bash-2.03$ ./testcomp.sh
> + bob
> ./testcomp.sh: bob: command not found
> + echo 127
> 127
> + echo 0
> 0
> + set +x
I think this is expected behavior: parenthesized commands run in a
sub-shell. What seems to be wrong with this output? Does a Unix box
behave differently?
- Raw text -