Date: Mon, 24 Jul 2000 08:53:30 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Richard Dawe cc: djgpp-workers AT delorie DOT com Subject: Re: Bug in bash 2.03's handling of compound commands? In-Reply-To: <397B5CE7.64B5954@phekda.freeserve.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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?