Comment on mv *.jpg is complete bullshit.

<- View Parent
mindbleach@sh.itjust.works ⁨9⁩ ⁨months⁩ ago

It expands *.jpg into a list of names.

Which you’d think would mean mv “thing.jpg” “other thing.jpg”, but no, it does mv thing.jpg other thing.jpg - and then chokes, because other is not a valid option or filename. Possibly after writing the contents of other thing.jpg onto the destination thing.jpg.

If any filenames contain characters like ; or &amp;, you better hope the next word doesn’t look like a command.

source
Sort:hotnewtop