delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/10/20/15:07:03

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Date: Sat, 20 Oct 2012 15:06:45 -0400
From: "Lawrence Mayer" <lawmaya AT gmx DOT com>
Message-ID: <20121020190646.15980@gmx.com>
MIME-Version: 1.0
Subject: CP and Ln can't parse windows path ending in wildcard
To: cygwin AT cygwin DOT com
x-registered: 0
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

CP and Ln can't parse windows path ending in wildcard

e.g.

ln WINDOWS PATH\* DIRECTORY (3rd form)
ln -t DIRECTORY WINDOWS PATH\*  (4th form)
cp -l WINDOWS PATH\* DIRECTORY

all fail returning error message

'cannot stat `WINDOWS PATH\\*': No such file or directory'

Workaround:

ln WINDOWS PATH/* DIRECTORY
ln -t DIRECTORY WINDOWS PATH/*
cp -l WINDOWS PATH/* DIRECTORY

all appear to work: note forward rather than backward slashes just before wildcard.


I am running cygwin 1.7.17-1 and coreutils 8.15-1, calling above commands from cmd.exe 5.2.3790.3959 on Windows Server 2003 sp2 x32.

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