X-Recipient: archive-cygwin@delorie.com
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
Message-ID: <508318E3.7090908@redhat.com>
Date: Sat, 20 Oct 2012 15:34:27 -0600
From: Eric Blake <eblake@redhat.com>
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
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

--------------enig1AC5E4B961AE7E0D162E4608
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

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"

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