DORMANTno replies

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

From: Brian Moyle <hidden>
Date: 2016-06-15 22:42:50
Subsystem: the rest · Maintainer: Linus Torvalds

Apparently, the "\c" confuses sed (v4.1.2).  Removing the '\'.

Signed-off-by: Brian Moyle <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help