Re: [PATCH] filter-branch: get rid of "set -e"

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Wednesday, July 18, 2007 - 9:27 am

Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:


Not in bash.  Just tried it.  But there are Bourne shells that do get
annoyed.


I'd rather write

[ "X$CDPATH" = "X" ] || unset CDPATH


With regard to shells, there is an interesting document
(info "(autoconf) Portable Shell")
which is rather disillusioning.

A real horror show is
(info "(autoconf) Limitations of Builtins")
where one learns that using if without else can lead to bad exit
status, too.

-- 
David Kastrup

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] filter-branch: get rid of "set -e", David Kastrup, (Wed Jul 18, 9:27 am)
Re: [PATCH] filter-branch: get rid of "set -e", Johannes Schindelin, (Wed Jul 18, 10:05 am)