bash_completion: support GNU sed 3 and non-GNU sed
authorTK Soh <teekaysoh@yahoo.com>
Fri, 19 Aug 2005 06:04:46 +0100
changeset 952 dbfabfcb485e
parent 951 859de3ebc041
child 953 52d8d81e72ad
bash_completion: support GNU sed 3 and non-GNU sed replaced command 'Q' introduced in GNU sed 4, in order to support platforms with older sed.
contrib/bash_completion
--- a/contrib/bash_completion	Thu Aug 18 21:35:36 2005 +0100
+++ b/contrib/bash_completion	Fri Aug 19 06:04:46 2005 +0100
@@ -1,7 +1,7 @@
 _hg_commands()
 {
     local commands="$(hg -v help | sed -e '1,/^list of commands:/d' \
-                                       -e '/^global options:/Q' \
+                                       -e '/^global options:/,$d' \
 				       -e '/^ [^ ]/!d; s/[,:]//g;')"
     
     # hide debug commands from users, but complete them if