tag 59533 notabug
close 59533
stop

On 23/11/2022 19:34, Elias Tsolis wrote:
files starting with "-" makes stat to say "invalid option -- 'S'"

example, create a file "-fddsfdf.txt" and run "stat *" or "stat
-fddsfdf.txt"

and then again , create a file "fddsfdf.txt" and run "stat *" or "stat
fddsfdf.txt"

In first case, it will says "invalid option -- 'S'",
in second, it will be run normally.

This is usually handled with:
  stat ./-blah
  stat -- -blah

thanks,
Pádraig



Reply via email to