Skip to content
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

Document escaping in s5cmd run #773

Open
ewjoachim opened this issue Nov 19, 2024 · 1 comment
Open

Document escaping in s5cmd run #773

ewjoachim opened this issue Nov 19, 2024 · 1 comment

Comments

@ewjoachim
Copy link

Hello,

How does own would write a file for s5cmd run when one needs to manipulate files containing spaces, single quotes etc ?

It looks like e.g. cp 'x y' 'zt' works (with single quotes) if the files contain spaces, but what if the file names also contains single quotes ?

1/ It's very nice if you have an answer
2/ It's even better if we can document this answer :)

Thank you !

@ewjoachim
Copy link
Author

ewjoachim commented Nov 19, 2024

Hm, it seems that all the answers needed are here:
#713 (comment)
In particular:

the line is split via kballard/go-shellquote.Split "...according to /bin/sh's word-splitting rules"

So mainly, what's left is to make those parts documented.

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

No branches or pull requests

1 participant