diff options
-rwxr-xr-x | etc/bash_completion.d/20vyatta-cfg | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg index 901806d..741c2c2 100755 --- a/etc/bash_completion.d/20vyatta-cfg +++ b/etc/bash_completion.d/20vyatta-cfg @@ -738,10 +738,11 @@ generate_help_text () vyatta_help_text="${vyatta_help_text}${helps[$idx]}" done if [ -n "$vyatta_cfg_comp_help" ]; then + local hstr=${vyatta_cfg_comp_help//\'/\'\\\\\\\'\'} vyatta_help_text+="\\n\\nDetailed information:\\n" local sIFS=$IFS IFS='
' - local chstr=$(echo -en "$vyatta_cfg_comp_help\n" \ + local chstr=$(echo -en "$hstr\n" \ | while read comp_help_line; do echo "vyatta_help_text+=' $comp_help_line\\n';" done) |