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

Re: ls --ignore-backups buggy?



On Thu, Nov 22, 2018 at 07:21:41PM +0100, Martin Klaiber wrote:

>    -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~~

Halt ich für völlig normales Verhalten. Die Shell expandiert Dein *,
Du führst also im Endeffekt

ls -B abc abc~ abc~~

aus. Das ls in dem Fall auch die Backups anzeigt, um die es ja explizit 
gebeten wurde, ist meiner Meinung nach ok.

Viele Grüße
Ulf


Reply to: