summaryrefslogtreecommitdiffstats
path: root/Docs/bash-completion
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2012-08-19 09:49:56 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2012-08-19 09:49:56 (GMT)
commit637207e62af7e6104dd8328c182d18870f1b155b (patch)
tree15541e84238cf8bd02fcdf8b71856d5bda404186 /Docs/bash-completion
parentd46f8afae98cd8f50cff9915a5a9dc680b9e0518 (diff)
downloadCMake-637207e62af7e6104dd8328c182d18870f1b155b.zip
CMake-637207e62af7e6104dd8328c182d18870f1b155b.tar.gz
CMake-637207e62af7e6104dd8328c182d18870f1b155b.tar.bz2
do not escape spaces in regular expressions
The space has no special meaning in regular expressions so it doesn't need to be escaped.
Diffstat (limited to 'Docs/bash-completion')
-rw-r--r--Docs/bash-completion/cpack2
1 files changed, 1 insertions, 1 deletions
diff --git a/Docs/bash-completion/cpack b/Docs/bash-completion/cpack
index 84dcfd5..a0c1f83 100644
--- a/Docs/bash-completion/cpack
+++ b/Docs/bash-completion/cpack
@@ -8,7 +8,7 @@ _cpack()
case "$prev" in
-G)
COMPREPLY=( $( compgen -W '$( cpack --help 2>/dev/null |
- grep "^ .*=\ .*" 2> /dev/null | grep -v "^ -" 2>/dev/null |
+ grep "^ .*= .*" 2> /dev/null | grep -v "^ -" 2>/dev/null |
cut -d" " -f 3 )' -- "$cur" ) )
return
;;