X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Rob Uiterlinden" Newsgroups: comp.os.msdos.djgpp References: <9003-Thu22Jul2004221332+0300-eliz AT gnu DOT org> <41003d3e$0$43451$e4fe514c AT news DOT xs4all DOT nl> <2914-Fri23Jul2004104314+0300-eliz AT gnu DOT org> Subject: Re: make 3.79.1 problem with copy command (Windows XP) Date: Fri, 23 Jul 2004 10:57:38 +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: 33 Message-ID: <4100d309$0$42417$e4fe514c@news.xs4all.nl> NNTP-Posting-Date: 23 Jul 2004 10:57:45 CEST NNTP-Posting-Host: 80.126.161.246 X-Trace: 1090573065 news.xs4all.nl 42417 [::ffff:80.126.161.246]:10020 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" wrote in message news:2914-Fri23Jul2004104314+0300-eliz AT gnu DOT org... > > 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. Interesting! echo $(COMSPEC) --> C:\WINDOWS\SYSTEM32\COMMAND.COM ver --> MS-DOS Version 5.00.500 That's command.com, all right. cmd /c ver --> Microsoft Windows XP [Version 5.1.2600] And that is cmd.exe executing! > > 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? Yes, in fact it is for a data recording system that writes data as formatted text in a file on a MS-DOS file system. The file is pre-allocated, so only the data in the file changes during recording, and not the file system. In that way, the file system will never get corrupted when the power is turned off. The Ctrl-Z character is the end of recorded data. Copy /a is a convenient way to separate the recorded data from the unused file portion. For now, it works and I know a little bit what is going on. Thanks, -RoB-