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: Reuti <reuti <at> staff.uni-marburg.de>
To: Miku <10mkudela <at> gmail.com>
Cc: 24294 <at> debbugs.gnu.org
Subject: bug#24294: Bug in mv, -- and - prefixes
Date: Tue, 23 Aug 2016 19:29:13 +0200
Hi,

Am 23.08.2016 um 19:08 schrieb Miku:

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

You can switch if off by -- as an option, i.e.:

$ mv -- --foo -bar

The -- ends the list of options and works with `touch`, `rm` and others too.

-- Reuti



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.