summaryrefslogtreecommitdiffstats
path: root/bash-completion/swapon
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion/swapon')
-rw-r--r--bash-completion/swapon2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash-completion/swapon b/bash-completion/swapon
index fc80af5eb..4a53ec5ac 100644
--- a/bash-completion/swapon
+++ b/bash-completion/swapon
@@ -18,7 +18,7 @@ _swapon_module()
OUTPUT_ALL="NAME TYPE SIZE USED PRIO UUID LABEL"
for WORD in $OUTPUT_ALL; do
if ! [[ $prefix == *"$WORD"* ]]; then
- OUTPUT="$WORD $OUTPUT"
+ OUTPUT="$WORD ${OUTPUT:-""}"
fi
done
compopt -o nospace