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

Re: [PATCH] Use backticks instead of $(command) to maintain /bin/sh compatibility

From
Junio C Hamano <junkio@cox.net>
Date
May 7, 2005, 18:38 UTC
Message-ID
<7vy8aqanlh.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20050507101530.GH23680@cip.informatik.uni-erlangen.de>
>>>>> "TG" == Thomas Glanzmann <sithglan@stud.uni-erlangen.de> writes:
TG> Hello,
>> You can nest $() which is valuable, unlike backtics.

TG> we're aware of this. But the specific script works perfectly fine TG> without nested simple-command redirection. So what is your point?

If that is the case then I think the patch you posted to force bash is backwards. How about changing it to use backticks?

Previous: Thomas GlanzmannNext: Thomas Glanzmann
Message 6 of 11 in “: git-merge-one-file-script use /usr/bin/env to call bash”
  1. : git-merge-one-file-script use /usr/bin/env to call bashThomas Glanzmann, May 7, 2005
  2. Junio C HamanoMay 7, 2005
  3. Use backticks instead of $(command) to maintain /bin/sh compatibilityThomas Glanzmann, May 7, 2005
  4. bert hubertMay 7, 2005
  5. Thomas GlanzmannMay 7, 2005
  6. Junio C HamanoMay 7, 2005
  7. Thomas GlanzmannMay 7, 2005
  8. Martin WaitzMay 7, 2005
  9. Morten WelinderMay 7, 2005
  10. Thomas GlanzmannMay 7, 2005
  11. H. Peter AnvinMay 9, 2005

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.