Skip to content

Commit

Permalink
completion-path: proper quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
pyroscope committed Aug 25, 2017
1 parent c71e9ec commit 534e32a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/examples/completion-path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set_target_path() {
# "target_base" is used to complete a non-empty but relative "target" path
target_base=$(sed -re 's~^(.*)/work/.*~\1/done~' <<<"${base_path}")
target_tail=$(sed -re 's~^.*/work/(.*)~\1~' <<<"${base_path}")
test "$is_multi_file" -eq 1 || target_tail=$(dirname "$target_tail")
test "$is_multi_file" -eq 1 || target_tail="$(dirname "$target_tail")"
test "$target_tail" != '.' || target_tail=""

# Move by label
Expand Down

0 comments on commit 534e32a

Please sign in to comment.