Skip to content

Commit dfa6222

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

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
@@ -473,7 +473,7 @@ _comp_cmd_scp__path_esc='[][(){}<>"'"'"',:;^&!$=?`\\|[:space:]]'
473473
# characters are replaced with the specified value (instead of the default
474474
# '\\&').
475475
# @stdin List of filenames in the "ls -1F" format, where filenames are
476-
# separated by newlines, and characters /=@|* are suffixed based on the
476+
# separated by newlines, and characters /*@|=> are suffixed based on the
477477
# types of the files.
478478
_comp_cmd_scp__escape_path()
479479
{
@@ -496,10 +496,10 @@ _comp_cmd_scp__escape_path()
496496
-e '/[^/]$/d' \
497497
-e 's/'"$_comp_cmd_scp__path_esc"'/'"$escape_replacement"'/g'
498498
else
499-
# escape problematic characters; remove executables, aliases, pipes
500-
# and sockets; add space at end of file names
499+
# escape problematic characters; remove executable, symlink, pipe,
500+
# socket and door indicators; add space at end of file names
501501
command sed \
502-
-e 's/[*@|=]$//g' \
502+
-e 's/[*@|=>]$//g' \
503503
-e 's/'"$_comp_cmd_scp__path_esc"'/'"$escape_replacement"'/g' \
504504
-e 's/[^/]$/& /g'
505505
fi

0 commit comments

Comments
 (0)