Hi Mohammad,
The version is: zsh 5.8.1 (x86_64-apple-darwin21.0)
I just made the test using:
(base) aborlaff@chispas PSF_TUTORIAL % imgs=$(ls outer/stamps/*.fits)
(base) aborlaff@chispas PSF_TUTORIAL % echo $imgs
outer/stamps/67510-1.fits
outer/stamps/67510-2.fits
outer/stamps/67510-3.fits
outer/stamps/67510-4.fits
outer/stamps/67510-5.fits
outer/stamps/67510-6.fits
outer/stamps/67510-7.fits
outer/stamps/67510-8.fits
And as you predicted, it worked. I had no idea that zsh and bash treated different the wildcards! I expected that they would be deeply rooted into the core of Unix, independently of the flavor.
Thank you!
Alex
==================================================================
Ex Luna, Scientia
Alejandro S. Borlaff, PhD - NASA / BAERI Researcher
NASA Space Science and Astrobiology Division (Code ST)
NASA Ames Research Center, N245-6, Moffett Field, California (94035) USA
Webpage :
https://borlaff.github.io/GitHub:
https://github.com/BorlaffTwitter: @asborlaff
==================================================================