diff options
author | Indrajit Raychaudhuri <irc@indrajit.com> | 2023-12-20 16:02:27 -0600 |
---|---|---|
committer | Indrajit Raychaudhuri <irc@indrajit.com> | 2023-12-20 16:31:02 -0600 |
commit | 18bdce6a6eed71866397c793fb2dafb92c890565 (patch) | |
tree | afc6e342ffd54771fda42adae6c742b64964d463 | |
parent | cefcffffe0a4a28e10f2f383032b2bf3bc8627db (diff) | |
download | vyatta-cfg-18bdce6a6eed71866397c793fb2dafb92c890565.tar.gz vyatta-cfg-18bdce6a6eed71866397c793fb2dafb92c890565.zip |
dhcp: T5846: Have separate DUID formatter hint
Have separate custom DUID formatter hint for config shell.
-rw-r--r-- | etc/bash_completion.d/vyatta-cfg | 5 |
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>' ;; |