Skip to content

Conversation

@jankofron
Copy link

In case of passing the -e parameter (finish after the "first" error found) to swarm, the generated scripts contain sub-condition 0 -eq 0, which is obviously wrong (I experienced misbehaviour). When escaping the $? as \\$?, the resulting scripts really test the result of wc -l, which is the intended behaviour, I believe.

@nimble-code
Copy link
Owner

nimble-code commented Nov 26, 2025 via email

@jankofron
Copy link
Author

I apologize for not sharing these details, I actually planned to... Well, I am on arch linux, GNU bash, version 5.3.3(1)-release (x86_64-pc-linux-gnu), so nothing special, I would say. I suspect bash here – do you use a different sh? I will try different machines and OSs to see, and let you know! Thanks a lot for your response :-)!

-Jan

@jankofron
Copy link
Author

I have just tried two other Linux OSes (Rocky Linux 9.5 and Ubuntu 22.04), tried to use zsh and dash instead of bash (by modifying the shebang in the generated swarm script), and still getting the same behaviour under any configuration ([ 0 -eq 0 ]). An interesting issue, I have to admit.

@nimble-code
Copy link
Owner

nimble-code commented Nov 27, 2025 via email

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.

2 participants