git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: David Kastrup <dak@gnu.org>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] filter-branch: get rid of "set -e"
Date: Wed, 18 Jul 2007 15:05:14 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0707181503500.14781@racer.site> (raw)
In-Reply-To: <86vechj0zz.fsf@lola.quinscape.zz>

Hi,

[please Cc me]

On Wed, 18 Jul 2007, David Kastrup wrote:

> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
> > It was reported by Alex Riesen that "set -e" can break something as 
> > trivial as "unset CDPATH" in bash.
> 
> Not in bash.  Just tried it.  But there are Bourne shells that do get
> annoyed.

The mail I was replying to _explicitely_ stated that it _was_ with bash.  
Not your version of it, but some version.

> > So get rid of "set -e".
> 
> I'd rather write
> 
> [ "X$CDPATH" = "X" ] || unset CDPATH

We would write that as "test", not "[".

But it is much cleaner to get rid of "set -e" anyway.

Ciao,
Dscho

      reply	other threads:[~2007-07-18 14:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-10 20:52 git-filter-branch exits early Alex Riesen
2007-07-10 21:57 ` Johannes Schindelin
2007-07-11  6:02   ` Alex Riesen
2007-07-11  7:55   ` Sven Verdoolaege
2007-07-18 13:17 ` [PATCH] filter-branch: get rid of "set -e" Johannes Schindelin
2007-07-18 13:27   ` David Kastrup
2007-07-18 14:05     ` Johannes Schindelin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0707181503500.14781@racer.site \
    --to=johannes.schindelin@gmx.de \
    --cc=dak@gnu.org \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).