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

Re: [PATCH v2] t0003: properly quote $HOME

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Oct 18, 2010, 10:02 UTC
Message-ID
<20101018100237.GB5641@burratino>
In-Reply-To
<b280c19ddc25f2f3a76d1871ed79906663daa802.1287392872.git.trast@student.ethz.ch>
Thomas Rast wrote:
>                                               This would be valid
> according to POSIX, but bash 4 helpfully declines to execute the
> command in question with an "ambiguous redirection" error.

For the benefit of those wondering why they never saw this problem, even after using bash for a while: bash in POSIX mode (e.g. when running as "sh") does not have the same problem.

Presumably that's why this problem was not noticed until on a platform without bash as /bin/sh, in v1.7.0-rc1~30 (work around an obnoxious bash "safety feature" on OpenBSD, 2010-01-26).

I still like the patch. :)
Previous: Thomas RastNext: Matthieu Moy
Message 5 of 8 in “t0003: properly quote $HOME”
  1. t0003: properly quote $HOMEThomas Rast, Oct 17, 2010
  2. Jonathan NiederOct 17, 2010
  3. Thomas RastOct 17, 2010
  4. t0003: properly quote $HOMEThomas Rast, Oct 18, 2010
  5. Jonathan NiederOct 18, 2010
  6. Matthieu MoyOct 17, 2010
  7. Johannes SixtOct 17, 2010
  8. Junio C HamanoOct 18, 2010

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.