Skip to content

Instantly share code, notes, and snippets.

@solidsnack
Created September 28, 2011 00:55
Show Gist options
  • Save solidsnack/1246713 to your computer and use it in GitHub Desktop.
Save solidsnack/1246713 to your computer and use it in GitHub Desktop.
!/bin/bash
set -o nounset -o errexit -o pipefail
countArgs () { echo $#; }
arr=()
countArgs "${arr[@]:0}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment