On Mon, May 24, 2010 at 02:48, Pitt, David <david.p...@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