Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #!/bin/zsh
  2.  
  3. function iter {
  4. local -a files2=$1
  5. for file in $files2; do
  6. echo "omg $file"
  7. done
  8. }
  9.  
  10. typeset -a files1
  11. files=$(find .)
  12. iter $files
  13.  
  14.  
  15.  
  16.  
  17. erg:bleh erg$ zsh --version
  18. zsh 5.0.8 (x86_64-apple-darwin15.0)
  19. erg:bleh erg$ ./omg.sh
  20. iter:local:1: files2: can't assign initial value for array
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement