Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: funny bug
- To: tlug@example.com
- Subject: Re: funny bug
- From: vp@example.com (Viktor Pavlenko)
- Date: 30 Mar 2001 15:41:06 +0900
- Content-Type: text/plain; charset="ISO-2022-JP"
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <VoJehB.A.LuC.EqCx6@example.com>
- Resent-Sender: tlug-request@example.com
>On Fri, Mar 30, 2001 at 02:22:00PM +0900, Viktor Pavlenko wrote: >> >Thanks for sharing the bug. Not knowing much about shell >> >scripting I was wondering if you could explain the bug? >> >It's a bit too subtle for me ;) >>=20 >> Shell expands [pP]rog_name to progname if progname is in the >> current directory and grep process name becomes `grep progname'. >> So `ps -ef | grep progname' will show the grep process too. >>=20 >> And `ps -ef | grep '[pP]rogname'' will not. > >I suppose that's simpler than adding "| grep -v grep". > grep '[p]rogname' .... (I think I was feeling too smart when writing [pP]) >--=20 >Austin K. Kurahone >Tokyo Linux Users Group / SIGUSR1 R&D >Hail Eris! All Hail Discordia! >"One must still have chaos in one to give birth to a dancing star!" --Nietz= >she=20
Home | Main Index | Thread Index
- Prev by Date: Re: funny bug
- Prev by thread: Re: funny bug
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links