7038Fermer7040
Yoshi NoirLe 11/08/2017 à 19:23
En fait, je crois que c'est même pas une histoire de shell, c'est juste que ls -I se vautre quand il y a au moins 2 fichiers à exclure du listing.
Cf. ls -I *my* et ls -l *MY* qui donnent des résultats différents parce que le nombre de fichiers à exclure diffère.


[edit] : eeeet le ticket est fermé car c'est pas un bug :

If you do not quote the operand of -I, it is expanded by the shell before
running the 'ls' command and only the first word produced by the expansion is
used as the operand of -I. The remaining words produced by the expansion are
seen by 'ls' as the list of files to be listed. You can consider using the -x
option of bash to see the exact command being invoked.

Yay.