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

[PATCH] cogitio: sh != bash

From
CWChris Wedgwood <cw@f00f.org>
Date
Jun 5, 2005, 07:45 UTC
Message-ID
<20050605074533.GA18645@taniwha.stupidest.org>

Without this users of dash (or similar?) as /bin/sh will get 'substitution' warnings.

diff --git a/cg-patch b/cg-patch
--- a/cg-patch
+++ b/cg-patch
@@ -128,7 +128,7 @@ wait
 touchfiles="$(git-ls-files --deleted | join -v 2 $gonefile -)"
 [ "$touchfiles" ] && touch $touchfiles
 
-cat $todo | xargs -0 sh -c '
+cat $todo | xargs -0 bash -c '
 while [ "$1" ]; do
 	op="$1"; shift;
 	case "$op" in
Message 1 of 1 in “cogitio: sh != bash”
  1. cogitio: sh != bashChris Wedgwood, Jun 5, 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.