On 09/06/2020 14:10, Bernhard Voelker wrote:
On 2020-06-09 13:31, Sid Boyce wrote:
I'll get around to filing a bug later.
lancelot@slipstream:~/ftp/JUN20> ls *.mp4 ls: invalid option -- '2' Try 'ls --help' for more information. lancelot@slipstream:~/ftp/JUN20> ls
Amp Up A QRP Ham Radio With MX-P50M.mp4
-23133 Safe Shutdown for Raspberry Pi with Super Capacitors.mp4 No bug, but expected behavior - similar to:
https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#How-do-I-remov...
"Since the file name begins with a ’-’ it looks like an option to the command. You need to force it to not look like an option. Put a ./ in front of it. Or give it the full file name path. Or tell the command you are through with options by using the double dash to end all option processing. This is common to most traditional Unix commands."
Therefore:
ls ./*.mp4 ls /full/path/*.mp4 ls -- *.mp4
Have a nice day, Berny
Thanks Bernhard, That's the first time I have ever encountered this on Linux, Solaris, UTS or any other Unix. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Senior Staff Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org