|
|
@ -151,7 +151,7 @@ __helm_compgen() {
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
for w in "${completions[@]}"; do
|
|
|
|
for w in "${completions[@]}"; do
|
|
|
|
if [[ "${w}" = "$1"* ]]; then
|
|
|
|
if [[ "${w}" = "$1"* ]]; then
|
|
|
|
# Use printf instead of echo beause it is possible that
|
|
|
|
# Use printf instead of echo because it is possible that
|
|
|
|
# the value to print is -n, which would be interpreted
|
|
|
|
# the value to print is -n, which would be interpreted
|
|
|
|
# as a flag to echo
|
|
|
|
# as a flag to echo
|
|
|
|
printf "%s\n" "${w}"
|
|
|
|
printf "%s\n" "${w}"
|
|
|
|