🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #15806

Re: how do I get it?

#15806
From: Hume C.L. Smith
Date: Mon, 06 Mar 1995 19:30
33 lines
2058 bytes
>>>>> "PM" == Philippe McLean <pmclean@virgo.drao.nrc.ca> writes:

PM> In article <3jdm0q$e0j@crcnis3.unl.edu> gberigan@cse.unl.edu (Greg Berigan) writes:
PM> [stuff deleted]

PM> |> The problem is that /dev/null is for output, not input.  You use
PM> |> /dev/zero for reading.  Thus:
PM> |> 
PM> |>         cat /dev/zero >/dev/null
PM> |> 
PM> |> A common mistake.

PM> Really? /dev/zero doesn't return end of file when you read from it.
PM> What is /dev/zero?

/dev/null reads as a zero-length file.
/dev/null writes as a black hole.
/dev/zero reads as an infinite-length file of NULs.

cat /dev/zero > /dev/null    will never stop on its own.

PM> Philippe McLean

duh, that's assuming you HAVE /dev/zero on your system; i don't!
-- 
Hume Smith                           hclsmith@ra.isisnet.com


"Like, don't I have the cutest toes, or some junk?"  Shirley



Technical Details
Message-ID: <STU7X93.95Mar6143020@bmerhaeb.bnr.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.perl.mbox.zip!bga.com!news.sprintlink.net!cs.utexas.edu!utnut!nott!bcarh189.bnr.ca!bmerhc5e.bnr.ca!news
References: <3iv8uv$9vi@usenet.srv.cis.pitt.edu> <D4q3t5.B1x@info.uucp> <MERLYN.95Feb28214434@linda.teleport.com> <3javk0$l8k@fcca.fcca.csi.com> <3jdm0q$e0j@crcnis3.unl.edu> <PMCLEAN.95Mar6110448@virgo.drao.nrc.ca>

Show Full Headers
Complete Article Headers
Message-ID: <STU7X93.95Mar6143020@bmerhaeb.bnr.ca>
Subject: Re: how do I get it?
Date: Mon, 06 Mar 1995 19:30:20 +0000
From: stu7x93@bmerhaeb.bnr.ca (Hume C.L. Smith)
References: <3iv8uv$9vi@usenet.srv.cis.pitt.edu> <D4q3t5.B1x@info.uucp> <MERLYN.95Feb28214434@linda.teleport.com> <3javk0$l8k@fcca.fcca.csi.com> <3jdm0q$e0j@crcnis3.unl.edu> <PMCLEAN.95Mar6110448@virgo.drao.nrc.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.perl.mbox.zip!bga.com!news.sprintlink.net!cs.utexas.edu!utnut!nott!bcarh189.bnr.ca!bmerhc5e.bnr.ca!news
Newsgroups: alt.sources.d,comp.lang.perl,comp.lang.tcl,news.misc,news.software.readers,alt.folklore.computers
Organization: Bell-Northern Research
Lines: 32
Reply-To: hclsmith@ra.isisnet.com
NNTP-Posting-Host: bmerhaeb.bnr.ca
X-Newsreader: GNUS 4.1.3 XEmacs, 19.11 XEmacs Lucid
In-reply-to: pmclean@virgo.drao.nrc.ca's message of 06 Mar 1995 19:04:48 GMT