[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: is this a bashism?



Marcelo E. Magallon writes:
> #!/bin/sh -e

> [ -x /usr/bin/update-menus ] && update-menus

> I've got a bug report that says it is.

It isn't.

> Ash bails out with exit status 1 if update-menus doesn't exist.

A script consisting only of those two lines will return 1, and so it
should.  It will do so for bash or ash.  It would do so for the Bourne
shell.
-- 
John Hasler
john@dhh.gt.org (John Hasler)
Dancing Horse Hill
Elmwood, WI


Reply to: