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

Re: The ls command



On Thu, Oct 30, 2025 at 11:37 PM Vincent Lefevre <vincent@vinc17.net> wrote:
>
> On 2025-10-30 21:32:59 -0400, Jeffrey Walton wrote:
> > On Thu, Oct 30, 2025 at 11:23 AM Nicolas George <george@nsup.org> wrote:
> > >
> > > Michael (HE12025-10-30):
> > > > Invalid option '--K'
> > >
> > > One of your PDF files has a stupid name. Try:
> > >
> > > ls -- *.pdf
> >
> > Or:
> >
> >     ls .\*.pdf
>
> I suppose you meant
>
>   ls ./*.pdf
>
> but the output has useless "./".

>From Fedora 42 (handy at the moment):

    $ touch -- '--K.pdf'
    $ ls
    --K.pdf

    $ ls *.pdf
    ls: unrecognized option '--K.pdf'
    Try 'ls --help' for more information.

    $ ls ./*.pdf
    ./--K.pdf

Jeff


Reply to: