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

Re: The ls command



On 31/10/2025 08:32, Jeffrey Walton wrote:
On Thu, Oct 30, 2025 at 11:23 AM Nicolas George wrote:
Michael (HE12025-10-30):
Invalid option '--K'

One of your PDF files has a stupid name. Try:

ls -- *.pdf

Or:

     ls .\*.pdf

It is really funny to read this thread, especially having in mind the following recent message:
Re: 3 minute delay at login. Thu, 23 Oct 2025 17:59:40 +0200.
<https://lists.debian.org/msgid-search/?m=aPpQ7C%2fk45dztVBu@tuxteam.de>

I couldn't remember the name of "System Tray" so.. I asked ChatGPT [...]

And how do you know it wasn't hallucinating?

The following static analyzer is not a LLM tool, you may run it locally. I like that it provides "further reading" links.

echo 'ls *.pdf' | shellcheck -s bash -

In - line 1:
ls *.pdf
^-- SC2035 (info): Use ./*glob* or -- *glob* so names with dashes won't become options.

For more information:
https://www.shellcheck.net/wiki/SC2035 -- Use ./*glob* or -- *glob* so name...

However at least bookworm version is not able to suggest correction for "grep '--K'".


Reply to: