Created
December 28, 2015 13:38
-
-
Save ninrod/c97ff16aa7a4eb7d73c7 to your computer and use it in GitHub Desktop.
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 characters
#!/usr/local/bin/zsh | |
f1 () { | |
local a=$1 | |
local b=$2 | |
local c; | |
let "c=$1+$2" | |
print $c | |
} | |
f1 2 2 | |
#prints 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment