- #!/bin/zsh
- a=($@)
- for ((i=1; i <= ${#@}; i++)); do echo element $i is: $@[$i]; done
- ./test.zsh -x one two three
- element 1 is: -x
- element 2 is: one
- element 3 is: two
- element 4 is: three
zsh array
By: iT|Free | Date: Dec 8 2008 13:26 | Format: None | Expires: never | Size: 199 B | Hits: 1201
Latest pastes
1 days ago
2 days ago
5 days ago
6 days ago
6 days ago