Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-718

Grep doesn't work when piped from features:listurl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.2.3, 3.0.0
    • karaf
    • None

    Description

      features:listUrl writes its output to the console using session.getConsole().println() instead of System.out.println(). The GrepAction.java wraps System.in in a BufferedLineReader() in order to grab the output of the preceding command. Because features:listurl doesn't write anything to the System, grep has nothing to filter. The fix for this is to change all instances of session.getConsole().println() in ListUrlcommand.java with System.out.println(). I will be submitting a patch for this shortly.

      Attachments

        1. karaf-718.txt
          1 kB
          Michael Van Geertruy

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            karafman Michael Van Geertruy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: