threads / patch / 6512

patchFix sed subst. in cogito cmd-complete script

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

## tl;dr

One message between Jan 24, 2007 and Jan 24, 2007. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Brian Moyle· Jan 24, 2007, 21:45 UTC · lore
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(-)
Show changes to contrib/cg-completion.bash +1 −1
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

← back to recent threads