DennisW a écrit :
>  Also, don't use ls like this - it's eyes-only.

Here is a demonstration:

touch "filename with spaces"
ARRAY=( $(ls) )  # BUG
for f in "${arr...@]}"; do echo "file: $f"; done
ARRAY=( * )      # OK
for f in "${arr...@]}"; do echo "file: $f"; done



Reply via email to