emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#17372: closed (GNU mv)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#17372: closed (GNU mv)
Date: Tue, 29 Apr 2014 15:45:03 +0000

Your message dated Tue, 29 Apr 2014 09:10:14 -0600
with message-id <address@hidden>
and subject line Re: bug#17372: GNU mv
has caused the debbugs.gnu.org bug report #17372,
regarding GNU mv
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
17372: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17372
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: GNU mv Date: Tue, 29 Apr 2014 07:34:34 -0700 (PDT)
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


--- End Message ---
--- Begin Message --- Subject: Re: bug#17372: GNU mv Date: Tue, 29 Apr 2014 09:10:14 -0600 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
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

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]