karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-754) shell:cat hyphen ("-") option not activating STDIN.
Date Thu, 31 May 2012 09:01:25 GMT

    [ https://issues.apache.org/jira/browse/KARAF-754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13286414#comment-13286414

Christian Schneider commented on KARAF-754:

I tested the "-" option by doing 
la | cat -
This works fine. So the problem with Ctrl-D might be separate from this issue. I will close
resolved. Please reopen if the Ctrl-D issue should be solved as part of this.
> shell:cat hyphen ("-") option not activating STDIN.
> ---------------------------------------------------
>                 Key: KARAF-754
>                 URL: https://issues.apache.org/jira/browse/KARAF-754
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.2.2
>            Reporter: Glen Mazza
>            Priority: Minor
>             Fix For: 3.0.0
> 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
>         shell:cat
> 	Displays the content of a file or URL.
>         shell:cat [options] paths or urls 
>         paths or urls
>                 A list of file paths or urls to display separated by whitespaces 
>                 (use - for STDIN)
>         --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.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message