Skip to content

Instantly share code, notes, and snippets.

@niedzielski
Last active September 29, 2018 04:51
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 niedzielski/df0f0d253c3c725c36175b1e4a3e42a8 to your computer and use it in GitHub Desktop.
Save niedzielski/df0f0d253c3c725c36175b1e4a3e42a8 to your computer and use it in GitHub Desktop.
The simplest possible bash argument parsing.
set -k
foo() { echo "$bar"; }
foo bar=baz
# prints baz
echo $bar
# prints nothing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment