|
From: | Paul Eggert |
Subject: | bug#24294: Bug in mv, -- and - prefixes |
Date: | Tue, 23 Aug 2016 10:28:39 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Miku wrote:
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"
This is not really a bug in mv, as the shell expands the "*" before invoking mv. To work around the problem, use "mv -- * dest_folder".
[Prev in Thread] | Current Thread | [Next in Thread] |