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

Bug: exit status ignored when using bash and && operator #1750

Closed
rszyma opened this issue Nov 30, 2023 · 1 comment
Closed

Bug: exit status ignored when using bash and && operator #1750

rszyma opened this issue Nov 30, 2023 · 1 comment

Comments

@rszyma
Copy link

rszyma commented Nov 30, 2023

_test:
    #!/bin/bash
    set -euxo pipefail
    false && false
    echo "hello"

Shouldn't it fail and not print "hello"?

$ just _test
+ false
+ echo hello
hello
@rszyma
Copy link
Author

rszyma commented Nov 30, 2023

nvm, bash alone gives same output

@rszyma rszyma closed this as completed Nov 30, 2023
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