summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-12-20 16:02:27 -0600
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-12-21 07:51:50 +0000
commitb369788ef466a0f0a0c66bba7a1b5dbe7070b074 (patch)
treed1c89c88a8914dd4b684d26e120b23fe639c2c3d
parent0d1d07cb389a19aed71974bceb37e7d7f3b7cc7b (diff)
downloadvyatta-cfg-b369788ef466a0f0a0c66bba7a1b5dbe7070b074.tar.gz
vyatta-cfg-b369788ef466a0f0a0c66bba7a1b5dbe7070b074.zip
dhcp: T5846: Have separate DUID formatter hint
Have separate custom DUID formatter hint for config shell. (cherry picked from commit 18bdce6a6eed71866397c793fb2dafb92c890565)
-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>'
;;