Skip to content

Instantly share code, notes, and snippets.

@svagionitis
Forked from vvv/noexit.sh
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svagionitis/a8ded6992423cb8d4eae to your computer and use it in GitHub Desktop.
Save svagionitis/a8ded6992423cb8d4eae to your computer and use it in GitHub Desktop.
Surprise of the day
$ cat noexit.sh
#!/bin/sh
seq 100 | while read; do exit; done # If `exit' terminated the script ..
echo 'Still alive!' # .. this message would not be printed.
$
$ sh noexit.sh
Still alive!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment