diff options
-rw-r--r-- | Completion/User/_tar | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/User/_tar b/Completion/User/_tar index 6433d3f8d..63838e83b 100644 --- a/Completion/User/_tar +++ b/Completion/User/_tar @@ -53,15 +53,15 @@ fi tmp="$words[(I)--file=*]" if (( tmp )); then - tf="${words[tmp][8,-1]}" + tf=${~words[tmp][8,-1]} _tar_cmd="f$_tar_cmd" elif [[ "$words[2]" != -* && "$words[2]" = *f* ]]; then - tf="$words[3]" + tf=${~words[3]} _tar_cmd="f$_tar_cmd" else tmp="${words[(I)-*f*~--*]}" if (( tmp )); then - tf="$words[tmp+1]" + tf=${~words[tmp+1]} _tar_cmd="f$_tar_cmd" fi fi |