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

Your original claim is disingenuous.

Of course

  cond = false
  if cond; then x; else (if cond; then echo msg); fi
does not do the same thing as

  cond = true
  if cond; then (if cond; then echo msg); else x; fi
Bash is not somehow strange in this regard.


There's neither anything disingenuous about my claim. Bash's behavior is quite unique and unexpected to most people in the examples I showed. And I don't appreciate the attack.




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

Search: