1 # aref.bash --- pseudo-array manipulating routines
2 # Author: Noah Friedman <friedman@prep.ai.mit.edu>
4 # Last modified: 1993-02-03
7 # Conversion to bash v2 syntax done by Chet Ramey
13 # Usage: aref NAME INDEX
15 # In array NAME, access element INDEX (0-origin)
25 [ $index -ge 1 ] && shift $index
29 #:docstring string_aref:
30 # Usage: aref STRING INDEX
32 # Echo the INDEXth character in STRING (0-origin) on stdout.
36 function string_aref
()