Skip to content

Instantly share code, notes, and snippets.

@caruccio
Created April 24, 2012 03:25
Show Gist options
  • Save caruccio/2476150 to your computer and use it in GitHub Desktop.
Save caruccio/2476150 to your computer and use it in GitHub Desktop.
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
@yyoops
Copy link

yyoops commented Aug 16, 2018

greate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment