Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.unix.shell Subject: Re: Finding the last arg Keywords: Bourne shell arguments Message-ID: <10906@jpl-devvax.JPL.NASA.GOV> Date: 3 Jan 91 23:55:21 GMT References: <18476@shlump.nac.dec.com> <3074@wyse.wyse.com> <1991Jan2.174157.21530@usenet.ins.cwru.edu> <2577@wn1.sci.kun.nl> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 11 In article <2577@wn1.sci.kun.nl> hansm@cs.kun.nl (Hans Mulder) writes: : I think the latter behaviour is more useful. For one thing, it makes : "if foo | grep -s bar" work right 100% of the time. Presuming, of course, that your grep actually returns a reasonable exit status. Some don't, alas. And the moral of the story? It's easier to port a shell than a shell script. Larry Wall lwall@jpl-devvax.jpl.nasa.gov