Subject: bug#24294: closed (Re: bug#24294: Bug in mv, -- and - prefixes)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 23 Aug 2016 17:29:02 +0000

Your bug report

#24294: Bug in mv, -- and - prefixes

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
24294: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24294
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#24294: Bug in mv, -- and - prefixes
From: Paul Eggert <[email-masked]>
To: Miku <[email-masked]>, [email-masked]
Date: Tue, 23 Aug 2016 10:28:39 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

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".

Subject: Bug in mv, -- and - prefixes
From: Miku <[email-masked]>
To: [email-masked]
Date: Tue, 23 Aug 2016 19:08:05 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

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"

Michał