Hacker News new | past | comments | ask | show | jobs | submit login

this fails in bash too, no?



No.


Var1=test echo $var1 will fail unless you are using an external echo command, which is unlikely

the bash builtin echo will fail to see var1 because this declaration at the command level only affects subshells

So yes.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

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

Search: