On Sun, Mar 18, 2007 at 09:50:16AM +0900, Charles Plessy wrote:
> Le Sat, Mar 17, 2007 at 01:02:46PM -0400, Justin Pryzby a écrit :
> > On Sat, Mar 17, 2007 at 08:12:47PM +0900, Charles Plessy wrote:
> > > Le Sat, Mar 17, 2007 at 12:00:20PM +0100, Florent Rougon a écrit :
> > > > Charles Plessy <[EMAIL PROTECTED]> wrote:
> > > > 
> > > > > #!/bin/sh
> > > > > echo -e "AMAP is now available under /usr/bin/amap.\nThis wrapper 
> > > > > (/usr/bin/amap-align) will be removed in the future."
> > > > > exec /usr/bin/amap "$@"
> > > > 
> > > > 'echo -e' is not specified by POSIX. If you want to use escapes such as
> > > > \n, you'd better use printf instead of echo.
> > > 
> > > Thanks a lot, I will use one echo per line.
> > 
> > set -e
> > 
> > {
> >     echo "first line"
> >     echo "second line"
> > } >&2
> 
> Oh, this is something I did not think about. But what is the set -e
> doing?
It's "essentially" required for all scripts to be able to detect errors.

Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to