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 -bto see if any special characters is there – phuclv Jan 17 '23 at 09:25trace-1.fitsshow up in the output oflsalone? – Stéphane Chazelas Jan 17 '23 at 09:28lscommand that they say works would not work. – Kusalananda Jan 17 '23 at 09:28ls -b trace-1.fitsjust returns trace-1.fits. It is not in the output oflsalone. – 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 lsgive 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-*.fitsalso misses the file.type lsgivesls 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 $GLOBALIGNOREreturns nothing, but could there be something else?echo $GLOBALIGNOREreturns nothing" – The name of the relevant variable isGLOBIGNORE, notGLOBALIGNORE. You should also quote right. – Kamil Maciorowski Jan 17 '23 at 18:56echo $GLOBIGNOREalso 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.fitsto 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