bug-bash
[Top][All Lists]
Advanced

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

Re: Syntax Question...


From: Greg Wooledge
Subject: Re: Syntax Question...
Date: Tue, 16 Aug 2011 08:17:39 -0400
User-agent: Mutt/1.4.2.3i

On Mon, Aug 15, 2011 at 08:19:01PM -0700, Linda Walsh wrote:
> ` Dennis Williamson wrote:
> >As has been said before, don't use "bash -e".

>    Why don't you convince Chet to remove it then?

He can't, because people like you keep using it.  Also, it's probably
mandated by POSIX.  I can't be bothered to check.

>    Do you run perl with "-w" and 'use strict;'

sh's -e is *not* equivalent to perl's use strict.  They do not accomplish
the same goals, nor do they try to.  Using -e in a sh script is the same
as writing  || exit  after every... single... command in the script.
Except for the ones where it isn't the same.  And nobody can guess what
those commands are.  It does not perform extra validations on your code.
It does not help you uncover programmer errors.  It is *nothing at all*
like use strict.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]