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

Piped command does not return errors! #25

Closed
ecow opened this issue Apr 7, 2024 · 1 comment
Closed

Piped command does not return errors! #25

ecow opened this issue Apr 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ecow
Copy link
Member

ecow commented Apr 7, 2024

for example echo "ask {}}" | sd sparql query

return 0 even if it prints a lot of error messages

@ecow ecow added the bug Something isn't working label Apr 7, 2024
@ecow
Copy link
Member Author

ecow commented Apr 7, 2024

The problem is in all piped commad.

Used
sd_return_first_non_zero "${PIPESTATUS[@]}"

@ecow ecow closed this as completed Apr 7, 2024
ecow added a commit that referenced this issue Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant