Re: [PATCH 01/18] rebase -i: Make the condition for an "if" more transparent
- From
Eric Blake <ebb9@byu.net>
- Date
- Jan 14, 2010, 15:42 UTC
- Message-ID
- <loom.20100114T164214-897@post.gmane.org>
- In-Reply-To
- <aa37ee8a68d460df172b23b4999fbe4ce7d77c1e.1263447037.git.mhagger@alum.mit.edu>
Michael Haggerty <mhagger <at> alum.mit.edu> writes:
> current_sha1=$(git rev-parse --verify HEAD) > - if test "$no_ff$current_sha1" = "$parent_sha1"; then > + if test -z "$no_ff" -a "$current_sha1" = "$parent_sha1"
'test cond1 -a cond2' is not portable. Use 'test cond1 && test cond2'.
-- Eric Blake