Re: [PATCH 1/4] mergetool--lib: Simplify command expressions
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 27, 2013, 22:32 UTC
- Message-ID
- <7vr4l6tfy6.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CAJDDKr61wS1ruPYDW4+exWBWveyS0Dp7Gmu5gWRh_99-frc_7Q@mail.gmail.com>
David Aguilar <davvid@gmail.com> writes:
> Definitely. I learned this the hard way when the tests broke on me while > working it ;-) My patch rewrites things to always use var=$(command) > expressions with separate test "$var" evaluating them.
OK; that wasn't clear from the log message.