delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/10/20/16:35:16

X-Recipient: archive-cygwin AT delorie DOT 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 AT gmx DOT 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 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>
In-Reply-To: <5082FCE5.8040703@redhat.com>
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

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

- Raw text -


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