Source From Standard In (Bash on OSX)
Posted
by yar
on Stack Overflow
See other posts from Stack Overflow
or by yar
Published on 2010-04-04T14:53:32Z
Indexed on
2010/04/04
15:03 UTC
Read the original article
Hit count: 243
I am trying to do something like this
ruby test.rb | source /dev/stdin
where test.rb just prints out cd /. There are no errors, but it doesn't do anything either. If I use this:
ruby test.rb > /eraseme; source /eraseme
it works fine, but I want to avoid the intermediate file.
© Stack Overflow or respective owner