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

This works but it gets ugly when you have to use 'set -e' everywhere:

set -e

  foo() {  
      /bin/false  
      echo "foo"  
  }  
  echo "$(set -e; foo)"


Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: