Last active
August 29, 2015 14:01
Revisions
-
progrium revised this gist
May 29, 2014 . 1 changed file with 13 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,4 +7,16 @@ destructuring_assignment_for_named_local_args() { echo "$words" } destructuring_assignment_for_named_local_args 123 abc "Hello world" # Actually, for local args, this is still probably preferrable: declare_named_local_args() { declare numbers="$1" letters="$2" words="$3" echo "$numbers" echo "$letters" echo "$words" } declare_named_local_args 123 abc "Hello world" -
progrium revised this gist
May 29, 2014 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,10 @@ destructuring_assignment_for_named_local_args() { declare numbers letters words read numbers letters words <<<"$@" echo "$numbers" echo "$letters" echo "$words" } destructuring_assignment_for_named_local_args 123 abc "Hello world" -
progrium revised this gist
May 29, 2014 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,10 @@ destructuring_assignment_for_named_local_args() { declare foo bar baz read foo bar baz <<<"$@" echo "$foo" echo "$bar" echo "$baz" } destructuring_assignment_for_named_local_args 123 "Foobar" baz -
progrium revised this gist
May 29, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,7 @@ destructuring_assignment_for_named_local_args() { declare foo bar baz read foo bar baz <<<$@ echo $foo echo $bar echo $baz -
progrium revised this gist
May 29, 2014 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ destructuring_assignment_for_named_local_args() { declare foo bar baz read foo bar baz <<<$@ echo $foo echo $bar echo $baz -
progrium renamed this gist
May 29, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
progrium created this gist
May 29, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ destructuring_assignment_for_named_local_args() { declare foo bar baz; read foo bar baz <<<$@ echo $foo echo $bar echo $baz } destructuring_assignment_for_named_local_args 123 "Foobar" baz