From unknown Sat Jun 14 03:58:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17372: GNU mv Resent-From: Scott Brunner Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 29 Apr 2014 14:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17372 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 17372@debbugs.gnu.org X-Debbugs-Original-To: "bug-coreutils@gnu.org" Reply-To: Scott Brunner Received: via spool by submit@debbugs.gnu.org id=B.139878342610854 (code B ref -1); Tue, 29 Apr 2014 14:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Apr 2014 14:57:06 +0000 Received: from localhost ([127.0.0.1]:45181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wf9Sz-0002oy-PI for submit@debbugs.gnu.org; Tue, 29 Apr 2014 10:57:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56097) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wf97l-0002BX-Sz for submit@debbugs.gnu.org; Tue, 29 Apr 2014 10:35:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wf97W-0006ys-4L for submit@debbugs.gnu.org; Tue, 29 Apr 2014 10:35:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:40791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wf97W-0006yo-11 for submit@debbugs.gnu.org; Tue, 29 Apr 2014 10:34:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wf97N-0007RV-96 for bug-coreutils@gnu.org; Tue, 29 Apr 2014 10:34:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wf97E-0006vL-2R for bug-coreutils@gnu.org; Tue, 29 Apr 2014 10:34:44 -0400 Received: from nm7-vm4.bullet.mail.ne1.yahoo.com ([98.138.91.167]:40724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wf97D-0006vE-QI for bug-coreutils@gnu.org; Tue, 29 Apr 2014 10:34:35 -0400 Received: from [98.138.100.113] by nm7.bullet.mail.ne1.yahoo.com with NNFMP; 29 Apr 2014 14:34:34 -0000 Received: from [98.138.89.240] by tm104.bullet.mail.ne1.yahoo.com with NNFMP; 29 Apr 2014 14:34:34 -0000 Received: from [127.0.0.1] by omp1013.mail.ne1.yahoo.com with NNFMP; 29 Apr 2014 14:34:34 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 861162.34491.bm@omp1013.mail.ne1.yahoo.com Received: (qmail 6413 invoked by uid 60001); 29 Apr 2014 14:34:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1398782074; bh=ISRz+01dsH7apie/DfEMcYtTeCplHXGHIlhXQHhw+20=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=v3/kiKql5yFAlrB0+U/QMOQshpMZf6K2ZsX/ExtABzPCmrGxx602UShwST7kWYqSnBA/jOHmYLpZsG0bSEiYvGKhACzgo2rvSgAS9Z3CVckbnlnTV+OEjQx6qcLDf4eLwa9sXera97OeCcyu083Jmk8/1gn8aYuFBaWlt5KoUIs= X-YMail-OSG: BnCcDUAVM1lXiF2nC9bxRlmUxXcoN3GoxxJN3vedCJv0awF e.Yz.okqLzJxnhGdUn8X5wGV18NCg3gRhLi9hcOQ_0aTmmOluVevmwSJjeKP 2eDVXvl_b6YKh883..WbwDoqHbIB9tuVGbSn.L_yb2fqPvi0.1izJqwL9cVB LogZuaX9itseTpRuhQeE8cKCa9vzCzTQpsyO.2DUZK8SxmYsqgeB7gSJQvxh GRtI_Gx6scn_6BtJivoBp9nTmmS26KYu15ESwVncE8j9QUjObbYzxFUeWzra Wphuc2WZfczL5l1ykaN9gSOKLkFJPRW6u_2qdcKMRUYmdiCEc9lHS1b.cL2p 6HbNQAMzyMuhc6PIKipjAFE5XxNCQQ_ajbvhFla4gV7Ym6tT6I2b460C6iSc HNLNlXQYtcR7Zgn9F9DpkqnfEgrjYKG1NfGgm8k5bkNwQGHWQ7LuwUoG1_tA C2uWPoh8U.A_lp3vmKmU.gCf.vhvqg6CLTcvJ0SOsJn6iVW2wcDzP6lt2qse Ob0jp1W6CRKGomnAubOVxc.bAKrG18X.NxtM.byOI8els0Z4n Received: from [198.23.5.11] by web122204.mail.ne1.yahoo.com via HTTP; Tue, 29 Apr 2014 07:34:34 PDT X-Rocket-MIMEInfo: 002.001, SGkgRm9sa3MsCgpOb3Qgc3VyZSBJJ20gaW4gdGhlIHJpZ2h0IHBsYWNlIC0gYnV0IC0gSSdtIGhhdmluZyBhIHByb2JsZW0gd2l0aCB0aGUgIm12IiBjb21tYW5kIGluIEN5Z3dpbidzIFVuaXggZW1tdWxhdG9yLi4uIFRoZSBtYW4gcGFnZSBkaXJlY3RlZCBtZSB0byB0aGlzIGFkZHJlc3MuLi4gSSBoYXZlIGEgYnVuY2ggb2YgZmlsZXMgdGhhdCBhbGwgc3RhcnQgd2l0aCB0aGUgIi0iIGNoYXJhY3RlciAoLW1vbywgLW1vbzEsIC1tb28yKS4uLiBPYnZpb3VzbHkgdGhlICItIiBpcyB0cmVhdGVkIGFzIGEgc3cBMAEBAQE- X-Mailer: YahooMailWebService/0.8.185.657 Message-ID: <1398782074.63128.YahooMailNeo@web122204.mail.ne1.yahoo.com> Date: Tue, 29 Apr 2014 07:34:34 -0700 (PDT) From: Scott Brunner MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="533417561-1508061801-1398782074=:63128" X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -3.8 (---) X-Mailman-Approved-At: Tue, 29 Apr 2014 10:57:04 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) --533417561-1508061801-1398782074=:63128 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi Folks,=0A=0ANot 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 "-" c= haracter (-moo, -moo1, -moo2)... Obviously the "-" is treated as a switch i= n 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 funct= ionality of Unix but I just wanted to point this out in case you were unawa= re...=0A=0AIn Solaris - this works: =0A=A0=0A=A0=A0=A0 mv -f - '-moo' SCO-m= oo=0A=0AIn Cygwin - it does not...=0A=0AThanks...=0A=0ARegards,=0AScott --533417561-1508061801-1398782074=:63128 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
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 ma= n page directed me to this address... I have a bunch of files that all star= t with the "-" character (-moo, -moo1, -moo2)... Obviously the "-" is treat= ed as a switch in the Unix world - so you can't do simple moves as you woul= d 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 cas= e you were unaware...

In Solaris - this works:
 
 &= nbsp;  mv -f - '-moo' SCO-moo

In Cygwin - it does not...
Thanks...

Regards,
Scott

--533417561-1508061801-1398782074=:63128-- From unknown Sat Jun 14 03:58:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17372: GNU mv Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 29 Apr 2014 15:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17372 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Scott Brunner Cc: 17372@debbugs.gnu.org Received: via spool by 17372-submit@debbugs.gnu.org id=B17372.139878401616386 (code B ref 17372); Tue, 29 Apr 2014 15:07:01 +0000 Received: (at 17372) by debbugs.gnu.org; 29 Apr 2014 15:06:56 +0000 Received: from localhost ([127.0.0.1]:45196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wf9cV-0004GD-Fr for submit@debbugs.gnu.org; Tue, 29 Apr 2014 11:06:55 -0400 Received: from mail5.vodafone.ie ([213.233.128.176]:48770) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wf9cS-0004Ft-IU for 17372@debbugs.gnu.org; Tue, 29 Apr 2014 11:06:53 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApMBAHa/X1NtTuXx/2dsb2JhbAANTINVxU2BOoMZAQEBBDIBRhALDQsJJQ8CRgYNAQcBAQWIPQika6QvF45PB4Q5BKAXjw0 Received: from unknown (HELO [192.168.1.79]) ([109.78.229.241]) by mail3.vodafone.ie with ESMTP; 29 Apr 2014 16:06:45 +0100 Message-ID: <535FC005.20306@draigBrady.com> Date: Tue, 29 Apr 2014 16:06:45 +0100 From: =?UTF-8?Q?P=C3=A1draig?= Brady User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 References: <1398782074.63128.YahooMailNeo@web122204.mail.ne1.yahoo.com> In-Reply-To: <1398782074.63128.YahooMailNeo@web122204.mail.ne1.yahoo.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) 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. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 29 11:44:30 2014 Received: (at control) by debbugs.gnu.org; 29 Apr 2014 15:44:30 +0000 Received: from localhost ([127.0.0.1]:45243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WfACr-0006Wr-Ix for submit@debbugs.gnu.org; Tue, 29 Apr 2014 11:44:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4571) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WfACn-0006We-Sq; Tue, 29 Apr 2014 11:44:27 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s3TFiNDQ017302 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 29 Apr 2014 11:44:24 -0400 Received: from [10.3.113.132] (ovpn-113-132.phx2.redhat.com [10.3.113.132]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s3TFAEI7014361; Tue, 29 Apr 2014 11:10:14 -0400 Message-ID: <535FC0D6.5020807@redhat.com> Date: Tue, 29 Apr 2014 09:10:14 -0600 From: Eric Blake Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Scott Brunner , 17372-done@debbugs.gnu.org Subject: Re: bug#17372: GNU mv References: <1398782074.63128.YahooMailNeo@web122204.mail.ne1.yahoo.com> In-Reply-To: <1398782074.63128.YahooMailNeo@web122204.mail.ne1.yahoo.com> X-Enigmail-Version: 1.6 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JBj0r2GWBsatNRHquQoD0kSsXVoEvX80n" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.7 (-----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --JBj0r2GWBsatNRHquQoD0kSsXVoEvX80n Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable tag 17372 notabug thanks On 04/29/2014 08:34 AM, Scott Brunner wrote: > Hi Folks, >=20 > 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 tha= t 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 mov= es as you would in Solaris... I'm not sure if the goal of your GNU releas= e is supposed to match the functionality of Unix but I just wanted to poi= nt this out in case you were unaware... >=20 > In Solaris - this works:=20 > =20 > 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-fi= le-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. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --JBj0r2GWBsatNRHquQoD0kSsXVoEvX80n Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTX8DWAAoJEKeha0olJ0NqhbgIAJvbv93G5VXbw2jbKFuhfI+Q TJlkfjO/tlfImmH0JZymvIZM/aFlNUq+ypr0Ua0yKgVKhot3B35qbbN/bQWntdYu P5Q+l0xJZv8jj98jQMxsOv0v7pwCNuf1kFNeOIB9j/qpcq3FtsS+zbraxjsy/B9Y kB2PVMzWdulm2g3PbGX8ai1xg1Q6418qiEBfBPJSvyS98VP1v6dSom2gwWH8DbJ8 ZDFHrolrnVPKTx/xf+UWwm5yWg+orIMVV4P/nEEdfXlKnJkIo18wzeSCBC2duvHl utPMkkr9JY9FwQRNj/kDEgCh9pbEXluwgwQUoaI71hLfFM+dj85I9Wf/joItM34= =33Rn -----END PGP SIGNATURE----- --JBj0r2GWBsatNRHquQoD0kSsXVoEvX80n-- From unknown Sat Jun 14 03:58:06 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Scott Brunner Subject: bug#17372: closed (Re: bug#17372: GNU mv) Message-ID: References: <535FC0D6.5020807@redhat.com> <1398782074.63128.YahooMailNeo@web122204.mail.ne1.yahoo.com> X-Gnu-PR-Message: they-closed 17372 X-Gnu-PR-Package: coreutils X-Gnu-PR-Keywords: notabug Reply-To: 17372@debbugs.gnu.org Date: Tue, 29 Apr 2014 15:45:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1398786303-25209-1" This is a multi-part message in MIME format... ------------=_1398786303-25209-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #17372: GNU mv 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 17372@debbugs.gnu.org. --=20 17372: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D17372 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1398786303-25209-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 17372-done) by debbugs.gnu.org; 29 Apr 2014 15:44:30 +0000 Received: from localhost ([127.0.0.1]:45245 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WfACs-0006Ww-3g for submit@debbugs.gnu.org; Tue, 29 Apr 2014 11:44:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4571) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WfACn-0006We-Sq; Tue, 29 Apr 2014 11:44:27 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s3TFiNDQ017302 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 29 Apr 2014 11:44:24 -0400 Received: from [10.3.113.132] (ovpn-113-132.phx2.redhat.com [10.3.113.132]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s3TFAEI7014361; Tue, 29 Apr 2014 11:10:14 -0400 Message-ID: <535FC0D6.5020807@redhat.com> Date: Tue, 29 Apr 2014 09:10:14 -0600 From: Eric Blake Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Scott Brunner , 17372-done@debbugs.gnu.org Subject: Re: bug#17372: GNU mv References: <1398782074.63128.YahooMailNeo@web122204.mail.ne1.yahoo.com> In-Reply-To: <1398782074.63128.YahooMailNeo@web122204.mail.ne1.yahoo.com> X-Enigmail-Version: 1.6 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JBj0r2GWBsatNRHquQoD0kSsXVoEvX80n" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: 17372-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.7 (-----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --JBj0r2GWBsatNRHquQoD0kSsXVoEvX80n Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable tag 17372 notabug thanks On 04/29/2014 08:34 AM, Scott Brunner wrote: > Hi Folks, >=20 > 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 tha= t 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 mov= es as you would in Solaris... I'm not sure if the goal of your GNU releas= e is supposed to match the functionality of Unix but I just wanted to poi= nt this out in case you were unaware... >=20 > In Solaris - this works:=20 > =20 > 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-fi= le-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. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --JBj0r2GWBsatNRHquQoD0kSsXVoEvX80n Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTX8DWAAoJEKeha0olJ0NqhbgIAJvbv93G5VXbw2jbKFuhfI+Q TJlkfjO/tlfImmH0JZymvIZM/aFlNUq+ypr0Ua0yKgVKhot3B35qbbN/bQWntdYu P5Q+l0xJZv8jj98jQMxsOv0v7pwCNuf1kFNeOIB9j/qpcq3FtsS+zbraxjsy/B9Y kB2PVMzWdulm2g3PbGX8ai1xg1Q6418qiEBfBPJSvyS98VP1v6dSom2gwWH8DbJ8 ZDFHrolrnVPKTx/xf+UWwm5yWg+orIMVV4P/nEEdfXlKnJkIo18wzeSCBC2duvHl utPMkkr9JY9FwQRNj/kDEgCh9pbEXluwgwQUoaI71hLfFM+dj85I9Wf/joItM34= =33Rn -----END PGP SIGNATURE----- --JBj0r2GWBsatNRHquQoD0kSsXVoEvX80n-- ------------=_1398786303-25209-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 29 Apr 2014 14:57:06 +0000 Received: from localhost ([127.0.0.1]:45181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wf9Sz-0002oy-PI for submit@debbugs.gnu.org; Tue, 29 Apr 2014 10:57:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56097) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wf97l-0002BX-Sz for submit@debbugs.gnu.org; Tue, 29 Apr 2014 10:35:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wf97W-0006ys-4L for submit@debbugs.gnu.org; Tue, 29 Apr 2014 10:35:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:40791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wf97W-0006yo-11 for submit@debbugs.gnu.org; Tue, 29 Apr 2014 10:34:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wf97N-0007RV-96 for bug-coreutils@gnu.org; Tue, 29 Apr 2014 10:34:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wf97E-0006vL-2R for bug-coreutils@gnu.org; Tue, 29 Apr 2014 10:34:44 -0400 Received: from nm7-vm4.bullet.mail.ne1.yahoo.com ([98.138.91.167]:40724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wf97D-0006vE-QI for bug-coreutils@gnu.org; Tue, 29 Apr 2014 10:34:35 -0400 Received: from [98.138.100.113] by nm7.bullet.mail.ne1.yahoo.com with NNFMP; 29 Apr 2014 14:34:34 -0000 Received: from [98.138.89.240] by tm104.bullet.mail.ne1.yahoo.com with NNFMP; 29 Apr 2014 14:34:34 -0000 Received: from [127.0.0.1] by omp1013.mail.ne1.yahoo.com with NNFMP; 29 Apr 2014 14:34:34 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 861162.34491.bm@omp1013.mail.ne1.yahoo.com Received: (qmail 6413 invoked by uid 60001); 29 Apr 2014 14:34:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1398782074; bh=ISRz+01dsH7apie/DfEMcYtTeCplHXGHIlhXQHhw+20=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=v3/kiKql5yFAlrB0+U/QMOQshpMZf6K2ZsX/ExtABzPCmrGxx602UShwST7kWYqSnBA/jOHmYLpZsG0bSEiYvGKhACzgo2rvSgAS9Z3CVckbnlnTV+OEjQx6qcLDf4eLwa9sXera97OeCcyu083Jmk8/1gn8aYuFBaWlt5KoUIs= X-YMail-OSG: BnCcDUAVM1lXiF2nC9bxRlmUxXcoN3GoxxJN3vedCJv0awF e.Yz.okqLzJxnhGdUn8X5wGV18NCg3gRhLi9hcOQ_0aTmmOluVevmwSJjeKP 2eDVXvl_b6YKh883..WbwDoqHbIB9tuVGbSn.L_yb2fqPvi0.1izJqwL9cVB LogZuaX9itseTpRuhQeE8cKCa9vzCzTQpsyO.2DUZK8SxmYsqgeB7gSJQvxh GRtI_Gx6scn_6BtJivoBp9nTmmS26KYu15ESwVncE8j9QUjObbYzxFUeWzra Wphuc2WZfczL5l1ykaN9gSOKLkFJPRW6u_2qdcKMRUYmdiCEc9lHS1b.cL2p 6HbNQAMzyMuhc6PIKipjAFE5XxNCQQ_ajbvhFla4gV7Ym6tT6I2b460C6iSc HNLNlXQYtcR7Zgn9F9DpkqnfEgrjYKG1NfGgm8k5bkNwQGHWQ7LuwUoG1_tA C2uWPoh8U.A_lp3vmKmU.gCf.vhvqg6CLTcvJ0SOsJn6iVW2wcDzP6lt2qse Ob0jp1W6CRKGomnAubOVxc.bAKrG18X.NxtM.byOI8els0Z4n Received: from [198.23.5.11] by web122204.mail.ne1.yahoo.com via HTTP; Tue, 29 Apr 2014 07:34:34 PDT X-Rocket-MIMEInfo: 002.001, SGkgRm9sa3MsCgpOb3Qgc3VyZSBJJ20gaW4gdGhlIHJpZ2h0IHBsYWNlIC0gYnV0IC0gSSdtIGhhdmluZyBhIHByb2JsZW0gd2l0aCB0aGUgIm12IiBjb21tYW5kIGluIEN5Z3dpbidzIFVuaXggZW1tdWxhdG9yLi4uIFRoZSBtYW4gcGFnZSBkaXJlY3RlZCBtZSB0byB0aGlzIGFkZHJlc3MuLi4gSSBoYXZlIGEgYnVuY2ggb2YgZmlsZXMgdGhhdCBhbGwgc3RhcnQgd2l0aCB0aGUgIi0iIGNoYXJhY3RlciAoLW1vbywgLW1vbzEsIC1tb28yKS4uLiBPYnZpb3VzbHkgdGhlICItIiBpcyB0cmVhdGVkIGFzIGEgc3cBMAEBAQE- X-Mailer: YahooMailWebService/0.8.185.657 Message-ID: <1398782074.63128.YahooMailNeo@web122204.mail.ne1.yahoo.com> Date: Tue, 29 Apr 2014 07:34:34 -0700 (PDT) From: Scott Brunner Subject: GNU mv To: "bug-coreutils@gnu.org" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="533417561-1508061801-1398782074=:63128" X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 29 Apr 2014 10:57:04 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Scott Brunner List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) --533417561-1508061801-1398782074=:63128 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi Folks,=0A=0ANot 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 "-" c= haracter (-moo, -moo1, -moo2)... Obviously the "-" is treated as a switch i= n 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 funct= ionality of Unix but I just wanted to point this out in case you were unawa= re...=0A=0AIn Solaris - this works: =0A=A0=0A=A0=A0=A0 mv -f - '-moo' SCO-m= oo=0A=0AIn Cygwin - it does not...=0A=0AThanks...=0A=0ARegards,=0AScott --533417561-1508061801-1398782074=:63128 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
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 ma= n page directed me to this address... I have a bunch of files that all star= t with the "-" character (-moo, -moo1, -moo2)... Obviously the "-" is treat= ed as a switch in the Unix world - so you can't do simple moves as you woul= d 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 cas= e you were unaware...

In Solaris - this works:
 
 &= nbsp;  mv -f - '-moo' SCO-moo

In Cygwin - it does not...
Thanks...

Regards,
Scott

--533417561-1508061801-1398782074=:63128-- ------------=_1398786303-25209-1-- From unknown Sat Jun 14 03:58:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17372: GNU mv Resent-From: Scott Brunner Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 29 Apr 2014 18:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17372 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: notabug To: Eric Blake Cc: "17372-done@debbugs.gnu.org" <17372-done@debbugs.gnu.org> Received: via spool by 17372-done@debbugs.gnu.org id=D17372.139879784527902 (code D ref 17372); Tue, 29 Apr 2014 18:58:02 +0000 Received: (at 17372-done) by debbugs.gnu.org; 29 Apr 2014 18:57:25 +0000 Received: from localhost ([127.0.0.1]:45386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WfDDX-0007Fw-MQ for submit@debbugs.gnu.org; Tue, 29 Apr 2014 14:57:24 -0400 Received: from nm29-vm4.bullet.mail.ne1.yahoo.com ([98.138.91.189]:29048) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WfDDU-0007FV-0S for 17372-done@debbugs.gnu.org; Tue, 29 Apr 2014 14:57:21 -0400 Received: from [98.138.100.111] by nm29.bullet.mail.ne1.yahoo.com with NNFMP; 29 Apr 2014 18:57:14 -0000 Received: from [98.138.104.116] by tm100.bullet.mail.ne1.yahoo.com with NNFMP; 29 Apr 2014 18:57:14 -0000 Received: from [127.0.0.1] by smtp225.mail.ne1.yahoo.com with NNFMP; 29 Apr 2014 18:57:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1398797834; bh=coQZKprl3D/h36G9jIn/6mrtK0nrMJtaLesPrk4aCQk=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:References:Mime-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Cc:X-Mailer:From:Subject:Date:To; b=eEFHb93iH38rmDS1zrT93cW3NUex5ptCg4zaQAGZyodI5Qen0ydrZNrUI/JHChWjvy+ci66F4oNaIO8xH4NzMptnfXYlZUE+a+UXmXK/1IhSdDrU+Butsy8QSMqTLJwyBuiglR7zm274DJ5o3n4Lx+CNxqJhGC7KHmEQZ6v/JLE= X-Yahoo-Newman-Id: 207479.45011.bm@smtp225.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: OqCialYVM1mM5kNbkgQcLP9iFLxv5CGdvHthCraLtYlSG7Y 1wLXmYRhUttHds.GeZydOznYCiBd37v5ZskZqmS_MFshZJ5VWb_qmLo49EVt lUoh_jI.2OmqBDLic_LMnPcnCHadQsaGRyFqIb96ZDzFgBrQqRkjTvYULTwC vCkNEMe9ga8wtO8YqR6xmO5zaU_7Mdam5zMYEjaQmoleIhKSH_NVxeSaQJkW PvuZX2qRwxuYUwuceyTY3lVplOUnXwHDK5Fon5q3SJGZwMuERMl0l0qUXEBV PNW78kVnEhm2qQKcuuGxI5vZIYFualZmrBx11hXxEvxaUMr5WqZn7n1LtAxf F8kbvOuzT2tbejcX2LoAJFPcMEaJtWzr2mAXM23G9H35OKDY61LL1A2a8XBh q8Xk7huthvnbOlUhlNpg9Z50_btuecbRLHjEibP_hfVqNbGsdch0vQ.V8kBK _MWx1U41JyvHAcEf9KujENZAb4unTCqxCIOLIS1B7kJu6tuNFSccTxJgvbuE oE0rSz1yJy..FPw6pzqyTe_jlDZwadjHNIwxMHCNnP15S40aNi3H49CGSahn kc1JWon2QN.fM2LcESZlLqLSKpZTugjzoINa5XgXOdLh9Re9N7_MhDQ4A_2B lymT5n0FBhrlvHu9nZys3.hpr5IJFtC.V21eNld21kCsVFgKRWVNqSwg2 X-Yahoo-SMTP: rLP42h2swBCQ46JoNaC.t6HzvE4YAw-- X-Rocket-Received: from [10.235.184.142] (Scottb613@174.236.68.214 with xymcookie [66.196.81.168]) by smtp225.mail.ne1.yahoo.com with SMTP; 29 Apr 2014 18:57:14 +0000 UTC References: <1398782074.63128.YahooMailNeo@web122204.mail.ne1.yahoo.com> <535FC0D6.5020807@redhat.com> Mime-Version: 1.0 (1.0) In-Reply-To: <535FC0D6.5020807@redhat.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <3A6A81E9-3575-4553-BC43-CEF8F3952A07@yahoo.com> X-Mailer: iPad Mail (11D201) From: Scott Brunner Date: Tue, 29 Apr 2014 14:57:10 -0400 X-Spam-Score: -0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) 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 wrote: >=20 > tag 17372 notabug > thanks >=20 >> On 04/29/2014 08:34 AM, Scott Brunner wrote: >> Hi Folks, >>=20 >> Not sure I'm in the right place - but - I'm having a problem with the "mv= " command in Cygwin's Unix emmulator... >=20 > 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). >=20 >> The man page directed me to this address... I have a bunch of files that a= ll 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 suppose= d to match the functionality of Unix but I just wanted to point this out in c= ase you were unaware... >>=20 >> In Solaris - this works:=20 >>=20 >> mv -f - '-moo' SCO-moo >=20 > That behavior is not required by POSIX. But what POSIX _does_ require > is that: >=20 > mv -f -- -moo SCO-moo >=20 > does the right thing, and GNU mv complies with that. You can also use: >=20 > mv -f ./-moo SCO-moo >=20 >=20 > You have asked a FAQ; for more details: >=20 > https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#I-have-a-fil= e-called-_002d_002dhelp_002e-How-do-I-remove-it_003f >=20 > 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. >=20 > --=20 > Eric Blake eblake redhat com +1-919-301-3266 > Libvirt virtualization library http://libvirt.org >=20