🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #39

Re: Create a 1 character file ????

#39
From: Rob Evans
Date: Fri, 30 Oct 1992 17:32
31 lines
1632 bytes
In article <1992Oct29.230606.6401@mccc.edu> pjh@mccc.edu (P. J. Holsberg) writes:

   I wonder why ....

	   I cannot create a 1 byte file with
		   vi
		   cat
		   microemacs

   But all of these stick a newline character in without being asked!

With cat it is possible, at least on my Sparc. Try the following:

foobar% cat > xxx
a^D^D
foobar% ls -l xxx
-rw-------  1 rhe		1 Oct 30 17:27 xxx
foobar%

The secret is to type Ctrl-D twice. 

Robert
--
/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\
/|\		  Robert Evans		     /|\     JANET email (UK) 	   /|\
/|\      Centre for Computing Services,      /|\     r.evans@uk.ac.ic      /|\
/|\		Imperial College	     /|\  INTERNET email (World)   /|\
/|\		   London, UK		     /|\     r.evans@ic.ac.uk      /|\
/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\
/|\	       He who holds his tongue cannot eat chocolate bar		   /|\
/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\
Technical Details
Message-ID: <R.EVANS.92Oct30173243@afs1.ic.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!darwin.sura.net!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!uknet!doc.ic.ac.uk!cc.ic.ac.uk!news.cc.ic.ac.uk!r.evans
References: <1992Oct29.230606.6401@mccc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!darwin.sura.net!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!uknet!doc.ic.ac.uk!cc.ic.ac.uk!news.cc.ic.ac.uk!r.evans
From: r.evans@ic.ac.uk (Rob Evans)
Newsgroups: comp.editors
Subject: Re: Create a 1 character file ????
Message-ID: <R.EVANS.92Oct30173243@afs1.ic.ac.uk>
Date: 30 Oct 92 17:32:43 GMT
References: <1992Oct29.230606.6401@mccc.edu>
Organization: Imperial College Centre for Computing Services
Lines: 31
In-reply-to: pjh@mccc.edu's message of Thu, 29 Oct 1992 23:06:06 GMT
Nntp-Posting-Host: afs1