# HG changeset patch # User TK Soh # Date 1124427886 -3600 # Node ID dbfabfcb485e29022b71d44e7f634c93600430a3 # Parent 859de3ebc041d275d38444f6aa5f0b71ae8adf50 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. diff --git a/contrib/bash_completion b/contrib/bash_completion --- a/contrib/bash_completion +++ b/contrib/bash_completion @@ -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