From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27865 invoked by alias); 20 Oct 2012 21:34:40 -0000 Received: (qmail 27771 invoked by uid 22791); 20 Oct 2012 21:34:40 -0000 X-SWARE-Spam-Status: No, hits=-10.6 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 20 Oct 2012 21:34:29 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9KLYSaY013075 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 20 Oct 2012 17:34:28 -0400 Received: from [10.3.113.52] (ovpn-113-52.phx2.redhat.com [10.3.113.52]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q9KLYS0I030958 for ; Sat, 20 Oct 2012 17:34:28 -0400 Message-ID: <508318E3.7090908@redhat.com> Date: Sat, 20 Oct 2012 21:34:00 -0000 From: Eric Blake User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Cp can't hardlink unqualified wildcard References: <20121020185055.248730@gmx.com> <5082FCE5.8040703@redhat.com> <50830AE1.2080606@gmx.com> In-Reply-To: <50830AE1.2080606@gmx.com> OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig1AC5E4B961AE7E0D162E4608" X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-10/txt/msg00309.txt.bz2 --------------enig1AC5E4B961AE7E0D162E4608 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-length: 1271 On 10/20/2012 02:34 PM, Lawrence Mayer wrote: > On 121020 12:35, Eric Blake wrote: >> On 10/20/2012 12:50 PM, Lawrence Mayer wrote: >>> Cp can't hardlink unqualified wildcard >>> >>> cp -l * DIRECTORY >>> >>> fails with error 'cp: target `file' is not a directory' >> >> Most likely, this is not an error in cp, but a misunderstanding on your >> part about how globbing operates. I bet you have a file in your current >> directory whose name starts with '-', and is thus being treated as an >> option by cp. >=20 > Wrong guess. No file starting with '-'. Still, your bug report is lousy. There is no mention of the name 'file' in the sample command line you provided, so the error message you reported does not match up to the command line that you reportedly used. Without seeing the exact problem, we can only guess at what you are doing wrong. Please provide an exact transcript of what you typed and the error you got, as well as enough context that we can reproduce the problem. Also, please show what 'echo cp -l * DIRECTORY' (or whatever the EXACT command is that you are typing, prepended by echo), so that we can see that the glob is expanding to. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig1AC5E4B961AE7E0D162E4608 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 617 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iQEcBAEBCAAGBQJQgxjkAAoJEKeha0olJ0NqVsUH/1hm5CT/lwRIHWXTKMfPHNd/ YKtTIutQEvYqUXdtO5lgN/L4R9dmg48BFilwLOao6bT0kw/c72qIwINjxUqzxP7p xSRuazQA5Rr5WMaf/dC1Bji7fXqA6x5qx9uLm0+rMJ7UbbYQaRNvWIO30rpsmjKu yhYH2X24vd1TL3cAps9ZE+bYhXYOZIxlhxeuV5h9oElyUVskJL/47cZ9F67teXOy 4bKGn0oaK3n20i24MPK/CbECaPg449w/ddIpng2SAEfo9NFZi3KFUCR9JJ0MHD6x TH42Pd8ETLo0NZZLUEUkA68dwI/YBGfKsM3+y9vhu9Q/D75wuZozaO54ghRj2vQ= =V2rz -----END PGP SIGNATURE----- --------------enig1AC5E4B961AE7E0D162E4608--