File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -477,7 +477,7 @@ _comp_cmd_scp__path_esc='[][(){}<>"'"'"',:;^&!$=?`\\|[:space:]]'
477477# characters are replaced with the specified value (instead of the default
478478# '\\&').
479479# @stdin List of filenames in the "ls -1F" format, where filenames are
480- # separated by newlines, and characters /=@|* are suffixed based on the
480+ # separated by newlines, and characters /*@|=> are suffixed based on the
481481# types of the files.
482482_comp_cmd_scp__escape_path ()
483483{
@@ -500,10 +500,10 @@ _comp_cmd_scp__escape_path()
500500 -e ' /[^/]$/d' \
501501 -e ' s/' " $_comp_cmd_scp__path_esc " ' /' " $escape_replacement " ' /g'
502502 else
503- # escape problematic characters; remove executables, aliases, pipes
504- # and sockets ; add space at end of file names
503+ # escape problematic characters; remove executable, symlink, pipe,
504+ # socket and door indicators ; add space at end of file names
505505 command sed \
506- -e ' s/[*@|=]$//g' \
506+ -e ' s/[*@|=> ]$//g' \
507507 -e ' s/' " $_comp_cmd_scp__path_esc " ' /' " $escape_replacement " ' /g' \
508508 -e ' s/[^/]$/& /g'
509509 fi
You can’t perform that action at this time.
0 commit comments