Created
April 24, 2012 03:25
-
-
Save caruccio/2476150 to your computer and use it in GitHub Desktop.
Revisions
-
caruccio revised this gist
Apr 24, 2012 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # 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 -
caruccio created this gist
Apr 24, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ 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