logo       

Re: AND list "command1 && command2" doesn't work as expected: msg#00211

shells.bash.bugs

Subject: Re: AND list "command1 && command2" doesn't work as expected

> Machine Type: i386-redhat-linux-gnu
>
> Bash Version: 2.05b
> Patch Level: 0
> Release Status: release
>
> Description:
> The bash script "Example 26-14. Emulating a push-down stack" from
> "http://www.tldp.org/LDP/abs/html/arrays.html"; works fine and there is
> an excercise to modify the code to support multiple element push and
> pop. The homework I did works fine until I took for granted the logical
> equivalence AND list should give the same result. Detail follows:

I can't reproduce any problem using bash-2.05b or bash-3.0.13 (patched).
I get the same results no matter which version or which construct I use.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU chet@xxxxxxxxxxx http://tiswww.tis.cwru.edu/~chet/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise