From: Dany Cayouette Date: 2005-05-13T11:10:28+09:00 Subject: Re: Nuby: 'importing shell script variables' eval/proc/binding Guillaume Marcais wrote: > > Two solutions to you problem. The first one shell_expand actually calls > the shell. So the expansion should be exactly what it is supposed to be. > But it is probably fragile: on my system, the variable UID is already > defined and read-only, and it would break shell_expand. > .... > The other one tries to mimic the shell variable expansion in ruby. Of > > > Hope it helps, > Guillaume. > wow... I was really going down the wrong path. The 'script' example given was 'bogus'. UID was probably just a wrong example to use. For my simple case, both solution given should work. Thanks a lot for the help. Dany