summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Bennett <brian.bennett@joyent.com>2020-06-25 09:00:48 -0700
committerGitHub <noreply@github.com>2020-06-25 09:00:48 -0700
commit6ce401c3b04dbcc0ce211f9ae316ff006ff5a39f (patch)
treed9612ee4e1fe09a902e8c30a11f045051b8c8b3a
parentd42bed23fc6e1abe7be5427a93275f96589d9f79 (diff)
downloadillumos-joyent-6ce401c3b04dbcc0ce211f9ae316ff006ff5a39f.tar.gz
OS-8190 zone_alias bash completion stomps all over shell variables that we happen to use all the time (#313)
Change-Id: I5aa29572a26fe220d3ec75e3382fb66d19c8202f
-rw-r--r--usr/src/cmd/nsadmin/bash/bash_completion.d/zone_alias1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/src/cmd/nsadmin/bash/bash_completion.d/zone_alias b/usr/src/cmd/nsadmin/bash/bash_completion.d/zone_alias
index b0a465060f..5ae8e1d7c7 100644
--- a/usr/src/cmd/nsadmin/bash/bash_completion.d/zone_alias
+++ b/usr/src/cmd/nsadmin/bash/bash_completion.d/zone_alias
@@ -1,5 +1,6 @@
_zone_alias()
{
+ local RES alias completed_alias results_arr uuid
# Attempt alias -> uuid mapping
alias="${COMP_WORDS[COMP_CWORD]}"
RES=$(vmadm list -H -o alias,uuid | awk -v alias="$alias" '