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

s5cmd ls --recursive ... prints error text to stdout #399

Closed
eigood opened this issue Jan 14, 2022 · 0 comments · Fixed by #431
Closed

s5cmd ls --recursive ... prints error text to stdout #399

eigood opened this issue Jan 14, 2022 · 0 comments · Fixed by #431

Comments

@eigood
Copy link

eigood commented Jan 14, 2022

I am converting a workflow from s3cmd to s5cmd, and didn't notice that s5cmd doesn't support recursive. I had redirected the ls to a file(for later processing with shell tools), and the script was failing(via set -e). I would have expected an error to be printed to stderr, like any other tool, so I was initially confused.

If s5cmd detects an error with cmdline arguments, it should print the help text to stderr, not stdout.

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 a pull request may close this issue.

1 participant