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

Naw its chief crime is not having `&&`


Im speaking from a position of naivete, so dont attack me;

Would an ideal situation be “do + while”

Whereas one may write

While x is true do “blah blah” && if output is still true then end elif do &&?

Or is that basically how it already works and we just have shitty interactions with the machines to get them too do the above (unless youre a more seniorbash person ((its one of my career regrets that i didnt spend a ton of time bash scripting)))


There are ways around it but nothing as easy as `&&` in other shells


pwsh 7 is adding it




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

Search: