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

shell:cat hyphen ("-") option not activating STDIN.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.2.2
    • 3.0.0
    • karaf
    • None

    Description

      According to the help for shell:cat, the - is supposed to activate cat for STDIN (just as the Linux cat command does). However, the hyphen is being used as an argument parsing flag and hence isn't working:

      karaf@root> cat --help
      DESCRIPTION
      shell:cat
      Displays the content of a file or URL.

      SYNTAX
      shell:cat [options] paths or urls

      ARGUMENTS
      paths or urls
      A list of file paths or urls to display separated by whitespaces
      (use - for STDIN)

      OPTIONS
      --help Display this help message
      -n The number the output lines, starting at 1.

      karaf@root> shell:cat -
      Error executing command shell:cat undefined option -

      It may be sufficient to remove the STDIN option from the cat command, I'm not sure how useful STDIN is within an OSGi command-line prompt anyway.

      Attachments

        Activity

          People

            cschneider Christian Schneider
            gmazza Glen Mazza
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: