delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/07/23/03:45:05

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Fri, 23 Jul 2004 10:43:14 +0200
From: "Eli Zaretskii" <eliz AT gnu DOT org>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp AT delorie DOT com
Message-Id: <2914-Fri23Jul2004104314+0300-eliz@gnu.org>
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9
In-reply-to: <41003d3e$0$43451$e4fe514c@news.xs4all.nl> (uiterl@xspamxnlr.nl)
Subject: Re: make 3.79.1 problem with copy command (Windows XP)
References: <cdofgc$ckgh$1 AT simian DOT nlr DOT nl> <9003-Thu22Jul2004221332+0300-eliz AT gnu DOT org> <41003d3e$0$43451$e4fe514c AT news DOT xs4all DOT nl>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Rob Uiterlinden" <uiterl AT xspamxnlr DOT nl>
> Newsgroups: comp.os.msdos.djgpp
> Date: Fri, 23 Jul 2004 00:18:18 +0200
> 
> 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?

It does, except that Windows stuffs COMMAND.COM into COMSPEC's value
when it sees a DOS program.  Try printing the value of COMSPEC from a
Makefile, and you will see it.

> > (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)?

Why, do you still have text files that end in a Ctrl-Z character?

- Raw text -


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