I have a simple linux script:
#!/bin/sh
for i in `ls $1`
do
echo $i
done
In my temp folder are 4 file: a.a, a.aa, a.ab and a.ac
When i call ./script temp/*.?? i get:
temp/a.aa
When i call ./script "temp/*.??" i get:
temp/a.aa
temp/a.ab
temp/a.ac
Why do the double quote change the result?