[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.
- Re: Syntax Question..., (continued)
- Re: Syntax Question..., Linda Walsh, 2011/08/18
- Re: Syntax Question..., Ken Irving, 2011/08/18
- Re: Syntax Question..., Linda Walsh, 2011/08/18
- Re: Syntax Question..., Greg Wooledge, 2011/08/18
- general bash oddities and discussion (was Re: Syntax Question...), Linda Walsh, 2011/08/18
- Re: Syntax Question..., Chet Ramey, 2011/08/18
- Re: Syntax Question..., Dennis Williamson, 2011/08/15
- Re: Syntax Question..., Linda Walsh, 2011/08/15
- Re: Syntax Question...,
Greg Wooledge <=
- Re: Syntax Question..., Dennis Williamson, 2011/08/16
- Re: Syntax Question..., Linda Walsh, 2011/08/16
- Re: Syntax Question..., Dennis Williamson, 2011/08/16
- Re: Syntax Question..., Greg Wooledge, 2011/08/17
- Re: Syntax Question..., Ken Irving, 2011/08/16
- Re: Syntax Question..., Dennis Williamson, 2011/08/16
- Re: Syntax Question..., Linda Walsh, 2011/08/16
- Re: Syntax Question..., Ken Irving, 2011/08/16
- Re: Syntax Question..., Greg Wooledge, 2011/08/17
- Re: Syntax Question..., Linda Walsh, 2011/08/19