delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/10/20/17:34:52

X-Recipient: archive-cygwin AT delorie DOT 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 AT redhat DOT 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 AT cygwin DOT com
Subject: Re: Cp can't hardlink unqualified wildcard
References: <20121020185055 DOT 248730 AT gmx DOT com> <5082FCE5 DOT 8040703 AT redhat DOT com> <50830AE1 DOT 2080606 AT gmx DOT com>
In-Reply-To: <50830AE1.2080606@gmx.com>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT redhat DOT 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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019