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

This is actually true of bash as well (and has bitten me a few times).

Try this:

  $ echo 'echo hello; sleep 2' >/tmp/hm.sh; bash /tmp/hm.sh & (sleep 1; echo 'ls /bin' >>/tmp/hm.sh); sleep 3



Didn't know that. Thanks!




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

Search: