gem list --no-installed does not work as expected

Abner Qian's Avatar

Abner Qian

27 Jun, 2013 11:08 PM

With rubygems 2.0.3, if I type in gem help list, the following options appear:
    -i, --[no-]installed Check for installed gem
    -I Equivalent to --no-installed

However, --no-installed or -I do not actually behave like the opposite of -i.

For example if I do "gem list -i rake", it will print true and exit with exit code 0. If I do "gem list -i something_nonexistant", it will print false and exit with exit code 1.

Based off this example, I would expect that "gem list --no-installed something_nonexistant" to print true and exit with an exit code of 0 and "gem list --no-installed rake" to print false and exit with an exit code of 1. However, it behaves as if I typed in "gem list something_nonexistant" or "gem list rake" instead, seeming to completely ignore the flags.

  1. Support Staff 1 Posted by Eric Hodel on 12 Jul, 2013 09:22 PM

    Eric Hodel's Avatar

    Seems like a bug. Abner, can you open a report on https://github.com/rubygems/rubygems so we can track it?

  2. Support Staff 2 Posted by Eric Hodel on 16 Jul, 2013 12:45 AM

    Eric Hodel's Avatar

    Fixed!

    This will go out in the next bug fix release of rubygems along with bug #594

  3. Eric Hodel closed this discussion on 16 Jul, 2013 12:45 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac