Skip to content

Instantly share code, notes, and snippets.

@extemporalgenome
Created March 4, 2015 17:47
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 extemporalgenome/398f9a7a39d23641d14e to your computer and use it in GitHub Desktop.
Save extemporalgenome/398f9a7a39d23641d14e to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ $# -eq 0 ]; then
echo this script works when you run it without args
exit 0
fi
# the parser only reaches this syntactically-invalid line if you pass the script args,
# proving that Bourne-compatible shells don't have separate parse and evaluate passes.
esac ] $(`)"
# if this were most other languages, the program wouldn't run/compile at all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment