help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Awkward behavior of empty arrays


From: Chris F.A. Johnson
Subject: Re: [Help-bash] Awkward behavior of empty arrays
Date: Thu, 7 Sep 2017 15:18:32 -0400 (EDT)
User-agent: Alpine 2.10 (DEB 1266 2009-07-14)

On Thu, 7 Sep 2017, Andy Chu wrote:

On Thu, Sep 7, 2017 at 5:44 AM, Greg Wooledge <address@hidden> wrote:

On Thu, Sep 07, 2017 at 02:32:12PM +0200, Cristian Zoicas wrote:
Could you explain why -u is horrible? Does it have some drawback?

http://mywiki.wooledge.org/BashFAQ/112

At least it's not set -e.  set -e has no possible justification at
all.  set -u is merely... quirky.


I agree that both are quirky, but even with quirks they're still useful,
and I use them exclusively.  "no possible justification" is hyperbole --
plenty of people use them.

I believe MOST serious shell users use set -e.

I have never used either 'set -e' or 'set -u'.

--
Chris F.A. Johnson, <http://cfajohnson.com>



reply via email to

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