I have three files in a folder: trace-0.fits
, trace-1.fits
, trace-2.fits
.
When I run:
ls trace-?.fits
Only trace-0.fits
and trace-2.fits
are detected. But:
ls trace-1.fits
Detects trace-1.fits
, as expected.
Does anyone know what's going on?
Edit:
The OS is gentoo linux, and the file system is ext4. ls *
, ls
, ls trace-*.fits
, and ls *1*.fits
also do not show trace-1.fit. The system variable $GLOBIGNORE is not set, and type ls
shows that ls is only aliased with the color option ls is aliased to `ls --color=auto
ls -b
to see if any special characters is there – phuclv Jan 17 '23 at 09:25trace-1.fits
show up in the output ofls
alone? – Stéphane Chazelas Jan 17 '23 at 09:28ls
command that they say works would not work. – Kusalananda Jan 17 '23 at 09:28ls -b trace-1.fits
just returns trace-1.fits. It is not in the output ofls
alone. – jyoung Jan 17 '23 at 09:56ls *1*
? – ilkkachu Jan 17 '23 at 10:47?
is a single character – Panki Jan 17 '23 at 12:57type ls
give anything other thanls is /usr/bin/ls
? – Chris Davies Jan 17 '23 at 13:18GLOBIGNORE='*1*'
in bash)? – steeldriver Jan 17 '23 at 13:32ls *1*
still misses trace-1.fits.ls trace-*.fits
also misses the file.type ls
givesls is aliased to `ls --color=auto'
I doubt that's the issue, but I could un-alias if we think that would be a useful experiment.@steeldriver, how could I tell?
– jyoung Jan 17 '23 at 18:47echo $GLOBALIGNORE
returns nothing, but could there be something else?echo $GLOBALIGNORE
returns nothing" – The name of the relevant variable isGLOBIGNORE
, notGLOBALIGNORE
. You should also quote right. – Kamil Maciorowski Jan 17 '23 at 18:56echo $GLOBIGNORE
also returns nothing. One question I missed from before, the file system is ext4. – jyoung Jan 17 '23 at 18:58ls trace-1.fits
, which had previously detected it, no longer does. I rantouch trace-1.fits
to re-create it, and it's now detected byls trace-?.fits
. So, there's not much left to test here. However, I first stumbled across this quirk when looking into a software bug, which I'm nearly sure is related to this issue. I'm going to run the software again to see if I can trigger the problem again, although the the bug may center around a different filename. – jyoung Jan 18 '23 at 03:15