GNU bug report logs -
#17372
GNU mv
Previous Next
Reported by: Scott Brunner <scottb613 <at> yahoo.com>
Date: Tue, 29 Apr 2014 14:58:01 UTC
Severity: normal
Tags: notabug
Done: Eric Blake <eblake <at> redhat.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17372 in the body.
You can then email your comments to 17372 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#17372
; Package
coreutils
.
(Tue, 29 Apr 2014 14:58:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Scott Brunner <scottb613 <at> yahoo.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Tue, 29 Apr 2014 14:58:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Folks,
Not sure I'm in the right place - but - I'm having a problem with the "mv" command in Cygwin's Unix emmulator... The man page directed me to this address... I have a bunch of files that all start with the "-" character (-moo, -moo1, -moo2)... Obviously the "-" is treated as a switch in the Unix world - so you can't do simple moves as you would in Solaris... I'm not sure if the goal of your GNU release is supposed to match the functionality of Unix but I just wanted to point this out in case you were unaware...
In Solaris - this works:
mv -f - '-moo' SCO-moo
In Cygwin - it does not...
Thanks...
Regards,
Scott
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#17372
; Package
coreutils
.
(Tue, 29 Apr 2014 15:07:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 17372 <at> debbugs.gnu.org (full text, mbox):
tag 17372 notabug
close 17232
stop
On 04/29/2014 03:34 PM, Scott Brunner wrote:
> Hi Folks,
>
> Not sure I'm in the right place - but - I'm having a problem with the "mv" command in Cygwin's Unix emmulator... The man page directed me to this address... I have a bunch of files that all start with the "-" character (-moo, -moo1, -moo2)... Obviously the "-" is treated as a switch in the Unix world - so you can't do simple moves as you would in Solaris... I'm not sure if the goal of your GNU release is supposed to match the functionality of Unix but I just wanted to point this out in case you were unaware...
>
> In Solaris - this works:
>
> mv -f - '-moo' SCO-moo
>
> In Cygwin - it does not...
two -- are need to terminate option processing in GNU land
mv -f -- '-moo' SCO-moo
See also:
http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#I-have-a-file-_0027_002df_0027-and-it-affects-rm_002e
thanks,
Pádraig.
Added tag(s) notabug.
Request was from
Eric Blake <eblake <at> redhat.com>
to
control <at> debbugs.gnu.org
.
(Tue, 29 Apr 2014 15:45:01 GMT)
Full text and
rfc822 format available.
Reply sent
to
Eric Blake <eblake <at> redhat.com>
:
You have taken responsibility.
(Tue, 29 Apr 2014 15:45:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Scott Brunner <scottb613 <at> yahoo.com>
:
bug acknowledged by developer.
(Tue, 29 Apr 2014 15:45:03 GMT)
Full text and
rfc822 format available.
Message #15 received at 17372-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
tag 17372 notabug
thanks
On 04/29/2014 08:34 AM, Scott Brunner wrote:
> Hi Folks,
>
> Not sure I'm in the right place - but - I'm having a problem with the "mv" command in Cygwin's Unix emmulator...
Yes, this is the right place; you'd see the same behavior on Linux,
which means it is not cygwin-specific (if you do encounter something
that you cannot reproduce on Linux, then the cygwin lists are a better
place for that question).
> The man page directed me to this address... I have a bunch of files that all start with the "-" character (-moo, -moo1, -moo2)... Obviously the "-" is treated as a switch in the Unix world - so you can't do simple moves as you would in Solaris... I'm not sure if the goal of your GNU release is supposed to match the functionality of Unix but I just wanted to point this out in case you were unaware...
>
> In Solaris - this works:
>
> mv -f - '-moo' SCO-moo
That behavior is not required by POSIX. But what POSIX _does_ require
is that:
mv -f -- -moo SCO-moo
does the right thing, and GNU mv complies with that. You can also use:
mv -f ./-moo SCO-moo
You have asked a FAQ; for more details:
https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#I-have-a-file-called-_002d_002dhelp_002e-How-do-I-remove-it_003f
Therefore, I'm closing this as not a bug, although you can continue to
respond to the thread if you have more questions on the topic.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#17372
; Package
coreutils
.
(Tue, 29 Apr 2014 18:58:02 GMT)
Full text and
rfc822 format available.
Message #18 received at 17372-done <at> debbugs.gnu.org (full text, mbox):
Hi Eric,
Thanks so much for the help and all you guys do supporting the GNU projects... Have a good day - sir !
Regards,
Scott
Sent from my iPad
> On Apr 29, 2014, at 11:10, Eric Blake <eblake <at> redhat.com> wrote:
>
> tag 17372 notabug
> thanks
>
>> On 04/29/2014 08:34 AM, Scott Brunner wrote:
>> Hi Folks,
>>
>> Not sure I'm in the right place - but - I'm having a problem with the "mv" command in Cygwin's Unix emmulator...
>
> Yes, this is the right place; you'd see the same behavior on Linux,
> which means it is not cygwin-specific (if you do encounter something
> that you cannot reproduce on Linux, then the cygwin lists are a better
> place for that question).
>
>> The man page directed me to this address... I have a bunch of files that all start with the "-" character (-moo, -moo1, -moo2)... Obviously the "-" is treated as a switch in the Unix world - so you can't do simple moves as you would in Solaris... I'm not sure if the goal of your GNU release is supposed to match the functionality of Unix but I just wanted to point this out in case you were unaware...
>>
>> In Solaris - this works:
>>
>> mv -f - '-moo' SCO-moo
>
> That behavior is not required by POSIX. But what POSIX _does_ require
> is that:
>
> mv -f -- -moo SCO-moo
>
> does the right thing, and GNU mv complies with that. You can also use:
>
> mv -f ./-moo SCO-moo
>
>
> You have asked a FAQ; for more details:
>
> https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#I-have-a-file-called-_002d_002dhelp_002e-How-do-I-remove-it_003f
>
> Therefore, I'm closing this as not a bug, although you can continue to
> respond to the thread if you have more questions on the topic.
>
> --
> Eric Blake eblake redhat com +1-919-301-3266
> Libvirt virtualization library http://libvirt.org
>
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 28 May 2014 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 19 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.