[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-265-g08a4c0e
Ville Skyttä
ville.skytta at iki.fi
Wed May 4 19:54:14 UTC 2011
The following commit has been merged in the master branch:
commit cec611fa51230bc4dac0f85cc0c2eb2c145400ac
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Wed May 4 22:45:47 2011 +0300
_parse_help: Use -r to "read" to avoid backslash issues.
diff --git a/bash_completion b/bash_completion
index 1be2128..5012c11 100644
--- a/bash_completion
+++ b/bash_completion
@@ -785,7 +785,7 @@ _parse_help()
{
eval local cmd=$1
local line
- "$cmd" ${2:---help} 2>&1 | while read line; do
+ "$cmd" ${2:---help} 2>&1 | while read -r line; do
[[ $line == *([ $'\t'])-* ]] || continue
__parse_options "$line"
--
bash-completion
More information about the Bash-completion-commits
mailing list