Re: [PATCH] parse-options: fix parsing of "--foobar=" with no value
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jul 22, 2008, 20:05 UTC
- Message-ID
- <alpine.DEB.1.00.0807222104100.8986@racer>
- In-Reply-To
- <48863436.50309@free.fr>
Hi,
On Tue, 22 Jul 2008, Olivier Marin wrote:
> I would have find it convenient for things like --foobar=$var where foobar > fallback to default when $var is empty.
--foobar=${var:-default} will expand to --foobar=default when $var is empty.
Hth, Dscho