X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.6 required=5.0	tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <50830AE1.2080606@gmx.com>
Date: Sat, 20 Oct 2012 13:34:41 -0700
From: Lawrence Mayer <lawmaya@gmx.com>
User-Agent: Mozilla/5.0 (Windows NT 5.2; rv:18.0) Gecko/18.0 Thunderbird/18.0a1
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>
In-Reply-To: <5082FCE5.8040703@redhat.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
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

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.

Wrong guess. No file starting with '-'.

Larry


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

