_parse_help: Use -r to "read" to avoid backslash issues.

This commit is contained in:
Ville Skyttä 2011-05-04 22:45:47 +03:00
parent 33900b8724
commit cec611fa51

View File

@ -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"