git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: Olivier MarinNext: Jeff King
Message 5 of 6 in “parse-options: fix parsing of "--foobar=" with no value”
  1. parse-options: fix parsing of "--foobar=" with no valueOlivier Marin, Jul 22, 2008
  2. Sverre RabbelierJul 22, 2008
  3. Pierre HabouzitJul 22, 2008
  4. Olivier MarinJul 22, 2008
  5. Johannes SchindelinJul 22, 2008
  6. Jeff KingJul 22, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.