[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Failed bash -r command returns 0 exit status
From: |
Dave Rutherford |
Subject: |
Re: Failed bash -r command returns 0 exit status |
Date: |
Mon, 24 May 2010 04:25:48 -0400 |
On Mon, May 24, 2010 at 02:48, Pitt, David <David.Pitt@anz.com> wrote:
> However executing "/bin/ls && /bin/ls" under a restricted shell
> returns a zero exit
> status. This is not expected (at least not by me!). Zero exit
> status is returned with
> any list of commands, e.g. "/bin/ls && :".
That one would, since the second command is 'true'. Replace it
with 'false' and you should see an exit status of 1.
As for "/bin/ls && /bin/ls", since neither command runs neither
one fails, either. 'Tis a bit of a head-scratcher, though.
Dave