🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.misc
Article #51

Re: echo >> gives erroneous results

#51
From: Jerzy Tarasiuk
Date: Thu, 29 Oct 1992 21:18
17 lines
1557 bytes
>>>>> On Tue, 27 Oct 1992 05:44:01 GMT, cctr132@csc.canterbury.ac.nz said:
c> In article <1992Oct23.202022.19083@dcatlas.dot.gov>, joet@dcatlas.dot.gov
c> (Joe Trott) writes:
> eric@prodigal.psych.rochester.edu (Eric Hansen) writes:
>>I have the following command in a batch file:
>>echo ccc >> c:\autoexec.bat
>>This *should* append the string "ccc" to the end of the autoexec.bat file
>>in root dir of my c drive.  Instead, it does nothing.  I've tested other

c> Someone else suggested that if the batch ended with (or without ?) a
c> Ctrl-Z (DOS EOF) then it wouldn't work - I just tried all sorts of
c> things (only MS-DOS 5.0) and couldn't make "echo ccc >> c:\autoexec.bat"
c> -NOT- work unless AUTOEXEC.BAT was write-protected.

Ctrl-Z does not cause AUTOEXEC.BAT to remain unchanged. But data
added after it is ignored by COMMAND.COM when it reads AUTOEXEC.BAT,
and (probably) by editor used to see if AUTOEXEC.BAT was changed.
Technical Details
Message-ID: <JT.92Oct29221836@fizyk1.fuw.edu.pl>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!fuw.edu.pl!cocos!jt
References: <1992Oct22.160130.28244@galileo.cc.rochester.edu> <1992Oct23.202022.19083@dcatlas.dot.gov> <1992Oct27.184401.1@csc.canterbury.ac.nz>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!fuw.edu.pl!cocos!jt
From: jt@fuw.edu.pl (Jerzy Tarasiuk)
Subject: Re: echo >> gives erroneous results
In-Reply-To: cctr132@csc.canterbury.ac.nz's message of Tue, 27 Oct 1992 05:44:01 GMT
Message-ID: <JT.92Oct29221836@fizyk1.fuw.edu.pl>
Sender: news@fuw.edu.pl
Nntp-Posting-Host: fizyk1
Organization: Warsaw University Physics Dept.
References: <1992Oct22.160130.28244@galileo.cc.rochester.edu>
 <1992Oct23.202022.19083@dcatlas.dot.gov>
 <1992Oct27.184401.1@csc.canterbury.ac.nz>
Date: Thu, 29 Oct 1992 21:18:36 GMT
Lines: 17