summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-12-21 08:51:13 +0100
committerGitHub <noreply@github.com>2023-12-21 08:51:13 +0100
commitf3e579ecae206f58447d25196c3495496b7693a5 (patch)
treeafc6e342ffd54771fda42adae6c742b64964d463
parentcefcffffe0a4a28e10f2f383032b2bf3bc8627db (diff)
parent18bdce6a6eed71866397c793fb2dafb92c890565 (diff)
downloadvyatta-cfg-f3e579ecae206f58447d25196c3495496b7693a5.tar.gz
vyatta-cfg-f3e579ecae206f58447d25196c3495496b7693a5.zip
Merge pull request #71 from indrajitr/duid-refactor-T5846
dhcp: T5846: Have separate DUID formatter hint
-rw-r--r--etc/bash_completion.d/vyatta-cfg5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg
index 1f8b3f6..c2d3a42 100644
--- a/etc/bash_completion.d/vyatta-cfg
+++ b/etc/bash_completion.d/vyatta-cfg
@@ -457,7 +457,7 @@ get_help_text ()
local hstr=${vyatta_cfg_comp_help//\'/\'\\\\\\\'\'}
vyatta_help_text+="\\n\\nDetailed information:\\n"
local sIFS=$IFS
- IFS=' '
+ IFS=$'\n'
local chstr=$(echo -en "$hstr\n" \
| while read comp_help_line; do
echo "vyatta_help_text+=' $comp_help_line\\n';"
@@ -514,6 +514,9 @@ get_value_format_string ()
macaddr)
echo -n '<h:h:h:h:h:h>'
;;
+ duid)
+ echo -n '<h[[:h]...]>'
+ ;;
hostname)
echo -n '<hostname>'
;;