This seems like it should be easy enough to do, but I'm clearly not understanding something fundamental about piping output back and forth.
I'm trying to do something like this:
bundle show some-gem-name | pushd
Where the result puts me in the path of the gem name with popd functionality supported to get back where I was.
pushd "$(bundle show some-gem-name)"
- works identical, but could be easier to type depending on the keyboard layout.$(...)
can be used nested. – jofel Mar 26 '12 at 15:52$(…)
only differ when there are backslashes or backticks inside. – Gilles 'SO- stop being evil' Mar 26 '12 at 22:54