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

[PATCH] Fix sed subst. in cogito cmd-complete script

From
BMBrian Moyle <bmoyle@pobox.com>
Date
Jan 24, 2007, 21:45 UTC
Message-ID
<20070124214540.GB30675@santaclara.siphon.net>
Apparently, the "\c" confuses sed (v4.1.2).  Removing the '\'.
Signed-off-by: Brian Moyle <bmoyle@pobox.com>
---
 contrib/cg-completion.bash |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/contrib/cg-completion.bash b/contrib/cg-completion.bash
index 428f320..4011cce 100644
--- a/contrib/cg-completion.bash
+++ b/contrib/cg-completion.bash
@@ -23,7 +23,7 @@ __cg_branches()
 
 __cg_cmdlist()
 {
-	(cg help && cg help tag && cg help branch && cg help admin) | grep --regexp "cg-[^ ]* " | sed 's/^.*\cg-\([^ ]*\) .*$/\1/' | grep -v COMMAND
+	(cg help && cg help tag && cg help branch && cg help admin) | grep --regexp "cg-[^ ]* " | sed 's/^.*cg-\([^ ]*\) .*$/\1/' | grep -v COMMAND
 
 }
 
-- 
1.4.4.4
Message 1 of 1 in “Fix sed subst. in cogito cmd-complete script”
  1. Fix sed subst. in cogito cmd-complete scriptBrian Moyle, Jan 24, 2007

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.