Skip to content

Commit c805208

Browse files
akinomyogascop
andauthored
fix(ssh): consider the "door" indicator in "ls -F" on Solaris
Co-authored-by: Ville Skyttä <[email protected]>
1 parent fe7a3f9 commit c805208

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

completions/ssh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)