From: Chris Kilmer Date: 2006-12-09T04:33:45+09:00 Subject: Re: Sourcing bash aliases with Ruby Ben Bleything wrote: > On Sat, Dec 09, 2006, Chris Kilmer wrote: >> I'm thinking that the problem has to do with the process context that >> the aliases are set in, but I don't know how to fix the problem. > > Ding. When you call system(), it fires up a subordinate shell which > runs whatever command you pass in. Then, that shell exits and your > aliases are gone. > > What's the problem you're trying to solve? I think there's probably a > better (non-Ruby) way to do what you want. > > Ben I'm basically trying to source a bunch of alias files without having to resort to writing bash scripts. I'm hoping there is a way. Certainly, if IO can be piped to the screen from the script then an alias can be piped to the terminal session. Fingers crossed :-) -- Posted via http://www.ruby-forum.com/.