Stupid bash scripting question

John Abreau jabr at blu.org
Wed Aug 24 17:48:01 EDT 2005


On Wed, 24 Aug 2005, Cole Tuininga wrote:

> It seems that either will do the job, I'm just wondering (for the
> purpose of my own "betterment" and improved knowledge of shell scripting
> *grin*) about advantages of either approach.  The only one I've come
> with so far is that Solution 2 requires a separate process to run.

So does the first one; the `..` spawns another shell, and I believe 
the eval spawns yet another shell. 

-- 
John Abreau / Executive Director, Boston Linux & Unix
ICQ 28611923 / AIM abreauj / JABBER jabr at jabber.org / YAHOO abreauj
Email jabr at blu.org / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99




More information about the gnhlug-discuss mailing list