Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@yhcd

This comment has been minimized.

Copy link

@yhcd yhcd commented Aug 16, 2018

greate

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