[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ls --ignore-backups buggy?



Hallo Liste,

auf einer anderen Mailingliste stolperte ich gerade über das Phänomen,
dass "ls -B" nicht funktioniert, wenn man einen Dateinamen angibt.

Zur Erinnerung, aus der manpage:

   -B, --ignore-backups
          do not list implied entries ending with ~

Beispiel:

   martinkl@maurice:~/tmp$ ls
   abc  abc~  abc~~
   martinkl@maurice:~/tmp$ ls -B
   abc
   martinkl@maurice:~/tmp$ ls -B *
   abc  abc~  abc~~
   martinkl@maurice:~/tmp$ ls --ignore-backups
   abc
   martinkl@maurice:~/tmp$ ls --ignore-backups *
   abc  abc~  abc~~

Soll das so sein oder ist das ein bug?

Ich benutze Debian stable. Kann jemand mit unstable bitte mal testen,
ob da das Verhalten gleich ist? Danke!

In tar gab es offenbar mal ein ähnliches Verhalten, das als bug
eingestuft und korrigiert wurde:

   <https://unix.stackexchange.com/questions/49715/tar-exclude-backups-does-not-exclude-files-with-tilde-at-end>

Für ls konnte ich dazu bisher nichts finden. Weiß jemand Genaueres?

TIA, Martin


Reply to: