Created
August 13, 2013 11:39
-
-
Save acook/6220298 to your computer and use it in GitHub Desktop.
if it displays "0" then the shell is zero indexed, if it displays "1" then its 1-indexed
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
export INDEX=('1' '0') | |
echo ${INDEX[1]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment