*BSD News Article 91008


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!howland.erols.net!newsfeed.internetmci.com!uuneo.neosoft.com!dolphin.neosoft.com!nobody
From: conrads@neosoft.com (Conrad Sabatier)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Thanks (was Re: A shell oddity (bug?))
Date: Thu, 13 Mar 1997 23:49:46 -0600
Organization: NeoSoft, Inc.
Lines: 26
Message-ID: <qtoag5.cdi.ln@dolphin.neosoft.com>
References: <jpt2g5.q2c.ln@dolphin.neosoft.com>
Reply-To: conrads@neosoft.com
NNTP-Posting-Host: 206.27.167.0
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:36998

In article <jpt2g5.q2c.ln@dolphin.neosoft.com>,
	conrads@neosoft.com (Conrad Sabatier) writes:

Thanks to all who followed up on this.  And a special thanks for
not jumping on me for my cluelessness.  :-)  Obviously, my
understanding of the pipe mechanism left much to be desired.

> ps -xU news | grep fetch
> 
> Assuming there's a running /usr/local/sbin/fetch (part of the
> leafnode package), then all one *should* see as a result would be:
> 
> <PID> .... /usr/local/sbin/fetch
> 
> However, sometimes the "grep fetch" itself also appears in the
> output!
> 
> This makes no sense to me.  Grep should be receiving the piped
> output of ps taken from *before* grep was running.
> 
> Why does this happen?

-- 
Conrad Sabatier		http://www.neosoft.com/~conrads