On 10/06/2020 01:46, Bernhard Voelker wrote:
On 2020-06-10 01:58, Sid Boyce wrote:
That's the first time I have ever encountered this on Linux, Solaris, UTS or any other Unix.
That's really very old behavior - there was no change for that in the past few decades at least.
Once one is fallen in that trap, he/she will ever remember. Just imagine files like "-rf" or "--help". While the former would e.g. let rm(1) remove recursively, the latter could make a command in a script return with exit status 0 although it would/should fail.
Thorough quoting/escaping arguments is key.
Have a nice day, Berny
Never came across it in the previous 40+ years. Still scratching my head --- check this! OK for *.png and *.zip but not for *.mp4.
slipstream:/home/lancelot/ftp/JUN20 # ls -l *.png -rw-r--r-- 1 lancelot users 5352632 Jun 8 12:39 2020-06-08_02-44-07.png -rw-r--r-- 1 lancelot users 300387 Jun 2 14:37 FT8.png -rw-r--r-- 1 lancelot users 161873 Jun 9 21:47 I2C-Extensio-board-outside-by-DB9.png -rw-r--r-- 1 lancelot users 114208 Jun 8 22:37 I2C-Interface.png -rw-r--r-- 1 lancelot users 313429 Jun 6 11:35 LPF-79e2ba9c21074287b29225ede1e43058.png -rw-r--r-- 1 lancelot users 336419 Jun 6 11:42 LPF-Layout-v1-3204eff11324454d9d5e4949d85d38aa.png -rw-r--r-- 1 lancelot users 362591 Jun 6 11:44 LPF-Layout-v2-dd707d0431f848b085004eeafbb17d93.png -rw-r--r-- 1 lancelot users 38991 Jun 7 01:06 midi-rs232.png -rw-r--r-- 1 lancelot users 23680 Jun 2 22:03 miniswr_sch1.png -rw-r--r-- 1 lancelot users 115143 Jun 7 22:15 PA500 rev1.png -rw-r--r-- 1 lancelot users 343291 Jun 7 22:10 Rune-CW-setup.png slipstream:/home/lancelot/ftp/JUN20 # ls -l *.mp4 ls: invalid option -- '2' Try 'ls --help' for more information. slipstream:/home/lancelot/ftp/JUN20 #
slipstream:/home/lancelot/ftp/JUN20 # ls -l *.zip -rw-r--r-- 1 lancelot users 2645200349 Jun 3 17:58 2020-05-27-raspios-buster-full-armhf.zip -rw-r--r-- 1 lancelot users 480547 Jun 6 14:33 HiqSDR_ody_1.3.zip -rw-r--r-- 1 lancelot users 126627 Jun 9 21:58 K9IVB Boards.zip -rw-r--r-- 1 lancelot users 603691229 Jun 2 21:13 pjrc_2017_04_04.zip -rw-r--r-- 1 lancelot users 62339 Jun 2 21:12 PSWR_T_102_RA8875.zip -rw-r--r-- 1 lancelot users 61665 Jun 2 21:18 PSWR_T_103d_RA8875_FT5206_T4.zip -rw-r--r-- 1 lancelot users 19966172 Jun 2 21:38 PWR-SWR_FT5206.zip -rw-r--r-- 1 lancelot users 19420553 Jun 2 21:39 PWR-SWR_GSL1680.zip -rw-r--r-- 1 lancelot users 2627078 Jun 2 21:12 RA8875-0.79b11p10.zip -rw-r--r-- 1 lancelot users 2649667 Jun 2 21:19 RA8875_t4.zip
On another box Leap 15.1.
bluebell:/GUITAR # ls -l *.mp4 -rw-r--r-- 1 lancelot users 288339235 Apr 20 2014 Guitar_Fretboard_Notes_Memorize.mp4 -rw-r--r-- 1 lancelot users 36577411 Jun 1 17:19 RHYTHM GUITAR Unlocking the Secrets of the Magic 5-Note Box.mp4 -rw-r--r-- 1 lancelot users 23198654 Jun 2 00:10 This Is Better Than The Spider Guitar Exercise-.mp4
Something has definitely changed recently as I have been doing this for mp4 files for at least 8 years.
Regards
Sid. No it hasn't. At least 10 years ago I ran into this, when I made a typo in a
Op woensdag 10 juni 2020 13:31:03 CEST schreef Sid Boyce: script that generated filenames *beginning* with a dash ( "-" ). The examples you provide do not contain such filenames. -- Gertjan Lettink a.k.a. Knurpht openSUSE Forums Team -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org