Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> false | true

That statement succeeds. Where's the error?

To be more precise... "make" isn't "bash". There's no problem with "make" here and it has no way to see inside bash's internals. It's a bit like asking "make" to understand python, javascript, and java code and runtimes.



I think the desire would be for that statement to fail. The pipe looks like a logical or, but it's actually for chaining IO. Always a good idea to turn on the pipefail option in your bash scripts.


Yeah, that's what I mean: This is a bash thing, not a make thing - but they're ascribing it to make instead of bash.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: