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

[PATCH] git: remove usage of xargs -r, a non-portable gnu extension

From
Bryan Larsen <bryanlarsen@yahoo.com>
Date
Jul 16, 2005, 23:18 UTC
Message-ID
<20050716231825.7315.30191.sendpatchset@bryan-larsens-ibook-g4.local>
Remove usage of xargs -r, a non-portable gnu extension.
Signed-off-by: Bryan Larsen <bryan.larsen@gmail.com>
---
 git-prune-script |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-prune-script b/git-prune-script
--- a/git-prune-script
+++ b/git-prune-script
@@ -20,6 +20,6 @@ sed -ne '/unreachable /{
     s|\(..\)|\1/|p
 }' | {
 	cd "$GIT_OBJECT_DIRECTORY" || exit
-	xargs -r $dryrun rm -f
+	xargs $dryrun rm -f ""
 }
 
Message 1 of 1 in “git: remove usage of xargs -r, a non-portable gnu extension”
  1. git: remove usage of xargs -r, a non-portable gnu extensionBryan Larsen, Jul 16, 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.