GNU bug report logs - #24294
Bug in mv, -- and - prefixes

Previous Next

Package: coreutils;

Reported by: Miku <10mkudela <at> gmail.com>

Date: Tue, 23 Aug 2016 17:22:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Miku <10mkudela <at> gmail.com>
Subject: bug#24294: closed (Re: bug#24294: Bug in mv, -- and - prefixes)
Date: Tue, 23 Aug 2016 17:29:02 +0000
[Message part 1 (text/plain, inline)]
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 24294 <at> debbugs.gnu.org.

-- 
24294: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24294
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Miku <10mkudela <at> gmail.com>, 24294-done <at> debbugs.gnu.org
Subject: Re: bug#24294: Bug in mv, -- and - prefixes
Date: Tue, 23 Aug 2016 10:28:39 -0700
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".


[Message part 3 (message/rfc822, inline)]
From: Miku <10mkudela <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: Bug in mv, -- and - prefixes
Date: Tue, 23 Aug 2016 19:08:05 +0200
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Ƃ




This bug report was last modified 8 years and 329 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.