{"thread":{"id":"837","subject":"[PATCH] cogitio: sh != bash","startedAt":"2005-06-05T07:45:33Z","lastAt":"2005-06-05T07:45:33Z","messageCount":1,"participants":["Chris Wedgwood"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"4569","messageId":"20050605074533.GA18645@taniwha.stupidest.org","threadId":"837","inReplyTo":null,"subject":"[PATCH] cogitio: sh != bash","fromName":"Chris Wedgwood","fromEmail":"cw@f00f.org","sentAt":"2005-06-05T07:45:33Z","receivedAt":"2005-06-05T07:45:33Z","isPatch":true,"sender":{"key":"cw@f00f.org","avatar":null},"body":"Without this users of dash (or similar?) as /bin/sh will get\n'substitution' warnings.\n\n\ndiff --git a/cg-patch b/cg-patch\n--- a/cg-patch\n+++ b/cg-patch\n@@ -128,7 +128,7 @@ wait\n touchfiles=\"$(git-ls-files --deleted | join -v 2 $gonefile -)\"\n [ \"$touchfiles\" ] && touch $touchfiles\n \n-cat $todo | xargs -0 sh -c '\n+cat $todo | xargs -0 bash -c '\n while [ \"$1\" ]; do\n \top=\"$1\"; shift;\n \tcase \"$op\" in\n\n"}]}