Skip to content

Instantly share code, notes, and snippets.

@yyoops
yyoops / bash-named-param
Last active August 16, 2018 09:31 — forked from caruccio/bash-named-param
Named parameters in bash
# Do you like python named parameters (kvargs) ?
# Well, you can have it in bash too!!
$ function myfunc() { local $*; echo "foo=$foo, bar=$bar"; }
$ myfunc bar=world foo=hello
foo=hello, bar=world