Skip to content

Instantly share code, notes, and snippets.

@ninrod
Created December 28, 2015 13:38
Show Gist options
  • Save ninrod/c97ff16aa7a4eb7d73c7 to your computer and use it in GitHub Desktop.
Save ninrod/c97ff16aa7a4eb7d73c7 to your computer and use it in GitHub Desktop.
#!/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