|
From: | GNU bug Tracking System |
Subject: | [debbugs-tracker] bug#24294: closed (Bug in mv, -- and - prefixes) |
Date: | Tue, 23 Aug 2016 17:29:02 +0000 |
Your message dated Tue, 23 Aug 2016 10:28:39 -0700 with message-id <address@hidden> and subject line Re: bug#24294: Bug in mv, -- and - prefixes has caused the debbugs.gnu.org bug report #24294, regarding Bug in mv, -- and - prefixes to be marked as done. (If you believe you have received this mail in error, please contact address@hidden) -- 24294: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24294 GNU Bug Tracking System Contact address@hidden with problems
--- Begin Message ---Subject: Bug in mv, -- and - prefixes Date: Tue, 23 Aug 2016 19:08:05 +0200 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 HelloWhen 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"MichaĆ
--- End Message ---
--- Begin Message ---Subject: Re: 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".
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |