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

Problem is you have to fork subshells if here is any sequencing involved. Compare

  if condition ; then
    command1
    command2
  else
    command3
    command4
  fi
versus:

  condition && (command1; command2) || (command3; command4)
GNU Bash has a fix for that: non-forking braces.



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: