[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24294: Bug in mv, -- and - prefixes
From: |
Bernhard Voelker |
Subject: |
bug#24294: Bug in mv, -- and - prefixes |
Date: |
Tue, 23 Aug 2016 20:28:27 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 |
On 08/23/2016 07:08 PM, Miku wrote:
> Hello
>
> When doing "mv * dest_folder" and one of files in directory starts with
> -- or - it sees that as an option.
>
> For instance if one of files is named "-v" or "--version" then "mv *
> dest_folder" would work like "mv -v * dest_folder" and "mv --version"
Besides the answer of Paul and Reuti, this is an FAQ (actually there are
several like these caused by shell file globbing around that):
http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#I-have-a-file-_0027_002df_0027-and-it-affects-rm_002e
Have a nice day,
Berny