Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] Bourne Shell variable assignment question



On Thu, Dec 15, 2011 at 04:27:34PM -0500, Richard Pieri wrote:
> On 12/15/2011 4:25 PM, Peter Doherty wrote:
> > Of course, one has to ask why your co-worker is doing this, and not just sourcing the file.
> > Also, my example will break if you have an equal sign in your variable name or value name.
> 
> This.  Sourcing the file is going to be the fastest and most reliable 
> way to do it.

And if you're really restricted to Bourne and not Bash, then you have to
use '.', not 'source'.

You can play tricks with 'eval' too if you'd like.

-b

--
character is fate.                                     <heraclitus>



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org