delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/07/22/18:30:26

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Rob Uiterlinden" <uiterl AT xspamxnlr DOT nl>
Newsgroups: comp.os.msdos.djgpp
References: <cdofgc$ckgh$1 AT simian DOT nlr DOT nl> <9003-Thu22Jul2004221332+0300-eliz AT gnu DOT org>
Subject: Re: make 3.79.1 problem with copy command (Windows XP)
Date: Fri, 23 Jul 2004 00:18:18 +0200
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
Lines: 25
Message-ID: <41003d3e$0$43451$e4fe514c@news.xs4all.nl>
NNTP-Posting-Date: 23 Jul 2004 00:18:40 CEST
NNTP-Posting-Host: 80.126.161.246
X-Trace: 1090534720 news.xs4all.nl 43451 [::ffff:80.126.161.246]:10407
X-Complaints-To: abuse AT xs4all DOT nl
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Eli Zaretskii" <eliz AT gnu DOT org> wrote in message news:9003-Thu22Jul2004221332+0300-eliz AT gnu DOT org...
>
> Try
>
> test1:
> <tab> cmd.exe /c copy longfilename.txt a.txt

Thanks! Problem solved!

> The problem here is that XP invokes COMMAND.COM as the shell for DOS
> programs, and it looks like the version of COMMAND.COM they use
> doesn't support long file names.  CMD does.

You are right. COMMAND.COM is used. Strange.
Didn't I read in the documentation that "make" uses COMSPEC to determine
which shell to invoke?

> (You should be much better off using cp.exe from GNU Fileutils
> instead of COPY and othet shell built-ins.)

OK, how do I emulate "copy /a" using "cp.exe" (truncate on End Of Text)?

-RoB-


- Raw text -


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