🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1145

Re: pipe equivalent to /dev/null ???

#1145
From: joseph.a.brownlee
Date: Thu, 13 Sep 1990 12:22
28 lines
1515 bytes
In article <3841@se-sd.SanDiego.NCR.COM>, rns@se-sd.SanDiego.NCR.COM (Rick
Schubert) writes:
> In <8720001@hpdmd48.boi.hp.com> oscarh@hpdmd48.boi.hp.com (Oscar Herrera)
> writes:
> >Is there an equivalent 'pipe' like entity to /dev/null ?
> >What I'd like to do is something like this 
> >	anycommand | bitbucket
> 
> I've seen responses of
> 	anycommand | true
> and
> 	anycommand | cat >/dev/null
> 
> What about
> 	anycommand | :
> 
> I'm not sure if this is shell-specific, but it works with the Bourne
> shell and the C shell, at least on our system.

Yes, that works, and it works in the Korn shell as well.  At least in the
context shown above, it is logically equivalent to the "anycommand | true"
case.

-- 
   -      _   Joe Brownlee, Analysts International Corp. @ AT&T Network Systems
  /_\  @ / `  471 E Broad St, Suite 1610, Columbus, Ohio 43215   (614) 860-7461
 /   \ | \_,  E-mail: jbr@cblph.att.com     Who pays attention to what _I_ say?
 "Scotty, we need warp drive in 3 minutes or we're all dead!" --- James T. Kirk
Technical Details
Message-ID: <1990Sep13.122243.5246@cbnews.att.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!att!cbnews!jbr0
References: <8720001@hpdmd48.boi.hp.com> <3841@se-sd.SanDiego.NCR.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!att!cbnews!jbr0
From: jbr0@cbnews.att.com (joseph.a.brownlee)
Newsgroups: comp.unix.shell
Subject: Re: pipe equivalent to /dev/null ???
Message-ID: <1990Sep13.122243.5246@cbnews.att.com>
Date: 13 Sep 90 12:22:43 GMT
References: <8720001@hpdmd48.boi.hp.com> <3841@se-sd.SanDiego.NCR.COM>
Organization: AT&T Bell Laboratories
Lines: 28