On 10 Jun 12:31 2020, Sid Boyce wrote:
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'
What does 'alias ls' says? - ismail -- "In this world, you must be oh so smart, or oh so pleasant. Well, for years I was smart. I recommend pleasant." SUSE Software Solutions Germany GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany GF: Felix Imendörffer (HRB 36809, AG Nürnberg)