Comment on mv *.jpg is complete bullshit.

NeatNit@discuss.tchncs.de ⁨8⁩ ⁨months⁩ ago

I have two questions:

  1. Is this some recent news that you expect us to have heard of? Your post demands context that is not easily understood (but it’s possible to understand through multiple reads)
  2. What shell are you using?

I’m using bash (GNU bash, version 5.1.16(1)-release) and don’t observe this behavior:

$ ls
'first file.txt'  'second file.txt'
$ cat 'first file.txt' 
this is originally named "first file.txt"
$ cat 'second file.txt' 
this is originally named "second file.txt"
$ mv *.txt
$ ls
'second file.txt'
$ cat 'second file.txt' 
this is originally named "first file.txt"

It’s possible that whatever shell you’re using has a bug, but it’s definitely not universal. It’s also possible that this bug only affects builtins like mv and not non-builtin commands.

source
Sort:hotnewtop