diff options
Diffstat (limited to 'bash-completion/taskset')
-rw-r--r-- | bash-completion/taskset | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash-completion/taskset b/bash-completion/taskset index 453b17b4a..7c9a7bd54 100644 --- a/bash-completion/taskset +++ b/bash-completion/taskset @@ -12,7 +12,7 @@ _taskset_module() CPULIST_ALL=$(sed 's/^/{/; s/-/../g; s/,/} {/g; s/$/}/' /sys/devices/system/cpu/online) for WORD in $(eval echo $CPULIST_ALL); do if ! [[ $prefix == *"$WORD"* ]]; then - CPULIST="$WORD $CPULIST" + CPULIST="$WORD ${CPULIST:-""}" fi done compopt -o nospace |