Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/zsh
- function iter {
- local -a files2=$1
- for file in $files2; do
- echo "omg $file"
- done
- }
- typeset -a files1
- files=$(find .)
- iter $files
- erg:bleh erg$ zsh --version
- zsh 5.0.8 (x86_64-apple-darwin15.0)
- erg:bleh erg$ ./omg.sh
- iter:local:1: files2: can't assign initial value for array
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement