From: Johannes Sixt Date: Fri, 09 Nov 2007 08:57:34 GMT Subject: Re: [BUG] git-rebase fails when a commit message contains a diff Message-ID: <473420FE.7010807@viscovery.net> In-Reply-To: <6FCE17E3-9FAA-4676-B12A-369B31743DA6@lrde.epita.fr> Benoit Sigoure schrieb: > Off topic question: why do you guys always do this instead of doing, > say, this: > > INTERACTIVE=false > > case $1 in > --interactive|-i) > INTERACTIVE=: > ... ;; > esac > if $INTERACTIVE; then > git_editor "$TODO" || die ... > fi Because in some shells 'false' is not a built-in. But then this might do it without the extra process: INTERACTIVE="! :" # false case $1 in --interactive|-i) INTERACTIVE=: ... ;; esac if $INTERACTIVE; then git_editor "$TODO" || die ... fi -- Hannes