0

I looked on several online help pages for using pipe in the linux command line but I wasn't able to get anything to work. My best guess as to what would work was the following:

bundle show jquery-rails | gnome-open

But it fails. If instead I run bundle show jquery-rails and then copy the results and then type gnome-open and then paste, it works fine. Is there a way to combine this into a single step I can run from the command line?

Background

If you'd like to understand why I care, see this question: How do I browse the source code for a gem in Rails3 with RVM (linux & gedit)

Community
  • 1
  • 1
snowguy
  • 899
  • 2
  • 13
  • 23

1 Answers1

0

As was noted in the question you posted on Ask Ubuntu, you need to use a subcommand.

gnome-open "$(bundle show jquery-rails)"
Community
  • 1
  • 1
Scott Severance
  • 943
  • 10
  • 27