Skip to content

[Waiting for #1397] fix(rsync,scp): remove file-type marks from "ls -F" properly #1398

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

akinomyoga
Copy link
Collaborator

This was a part of #1371 but was separated. Waiting for #1397.

Details are described in the commit message.

In sed, /[^\/]/ does not mean "a character that is not a slash".  It
means "a character that is not a backslash or a slash".  In the
bracket expressions [...], slashes do not need to be escaped by a
backslash, and also, a backslash is treated literally.  We should
instead use /[^/]/.
The type-classifier characters for named pipes (|) and sockets (=)
were not properly removed.  These are escaped by a backslash before
removing, so the backslashes are left.  In this patch, we remove the
type-classifier characters before performing the backslash escaping.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant