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

Re: [PATCH] Avoid using non-portable `echo -n` in tests.

From
FGFrancis Galiegue <fg@one2team.net>
Date
Oct 31, 2008, 19:50 UTC
Message-ID
<200810312050.31167.fg@one2team.net>

Le Friday 31 October 2008 19:39:33 Jeff King, vous avez écrit : [...]

>
> Agreed, and actually I found such a bashism (test ==) last week (though
> of course it also broke on FreeBSD).
>
As for bash-isms, a hunt for $(...) also looks necessary...

$ grep -rl '\$([^)]\+)' $(find -type f)|wc -l 272

Unless I'm mistaken (and I probably am), the $(...) construct is bash-specific, isn't it?

-- 
fge
Next: Junio C Hamano
Message 1 of 4 in “Re: [PATCH] Avoid using non-portable `echo -n` in tests.”
  1. Francis GaliegueOct 31, 2008
  2. Junio C HamanoOct 31, 2008
  3. Ian HiltOct 31, 2008
  4. Francis GaliegueOct 31, 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.