Last active
September 29, 2018 04:51
-
-
Save niedzielski/df0f0d253c3c725c36175b1e4a3e42a8 to your computer and use it in GitHub Desktop.
The simplest possible bash argument parsing.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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