You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (JIRA)" <ji...@apache.org> on 2010/10/14 16:22:37 UTC

[jira] Created: (FELIX-2661) [Gogo] It should be easier to start Gogo shell non-interactively

[Gogo] It should be easier to start Gogo shell non-interactively
----------------------------------------------------------------

                 Key: FELIX-2661
                 URL: https://issues.apache.org/jira/browse/FELIX-2661
             Project: Felix
          Issue Type: Improvement
          Components: Gogo Shell
    Affects Versions: gogo-0.6.1
            Reporter: Richard S. Hall
             Fix For: gogo-0.8.0


To start the Gogo shell non-interactively, you have to specify a dummy command and tell it not to shutdown in its configuration...something like this:

    gosh.args=--noshutdown -c noop=true

This is not necessarily the most straightforward approach and it also results in the gosh_profile being executed and the MOTD being displayed, which doesn't really make sense in the non-interactive use case.

It seems like it would be better to have an explicit flag to tell the Gogo shell to start up non-interactively (e.g., --noninteractive), which would also imply not shutting down, but wouldn't require a dummy command, nor execute the gosh_profile.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-2661) [Gogo] It should be easier to start Gogo shell non-interactively

Posted by "Derek Baum (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921021#action_12921021 ] 

Derek Baum commented on FELIX-2661:
-----------------------------------

> It is not clear that "-i" is a good alias for "--nointeractive"... 

aliases are a single letter, so -n would be ambiguous with --noshutdown.

Often CAPS are used for single letter inverse options (-I), but in this case I don't think that there's any need for an alias.

Aliases are generally used to save interactive typing. The full long option name is preferred in scripts as it is self-documenting, rather than wondering what the -i or -ni option does. Long options can be abbreviated to their shortest unambiguous form, e.g. --noi and --nos.

So shall we just remove the -i alias for --nointeractive?

> [Gogo] It should be easier to start Gogo shell non-interactively
> ----------------------------------------------------------------
>
>                 Key: FELIX-2661
>                 URL: https://issues.apache.org/jira/browse/FELIX-2661
>             Project: Felix
>          Issue Type: Improvement
>          Components: Gogo Shell
>    Affects Versions: gogo-0.6.1
>            Reporter: Richard S. Hall
>            Assignee: Derek Baum
>             Fix For: gogo-0.8.0
>
>
> To start the Gogo shell non-interactively, you have to specify a dummy command and tell it not to shutdown in its configuration...something like this:
>     gosh.args=--noshutdown -c noop=true
> This is not necessarily the most straightforward approach and it also results in the gosh_profile being executed and the MOTD being displayed, which doesn't really make sense in the non-interactive use case.
> It seems like it would be better to have an explicit flag to tell the Gogo shell to start up non-interactively (e.g., --noninteractive), which would also imply not shutting down, but wouldn't require a dummy command, nor execute the gosh_profile.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (FELIX-2661) [Gogo] It should be easier to start Gogo shell non-interactively

Posted by "Derek Baum (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Derek Baum reassigned FELIX-2661:
---------------------------------

    Assignee: Derek Baum

> [Gogo] It should be easier to start Gogo shell non-interactively
> ----------------------------------------------------------------
>
>                 Key: FELIX-2661
>                 URL: https://issues.apache.org/jira/browse/FELIX-2661
>             Project: Felix
>          Issue Type: Improvement
>          Components: Gogo Shell
>    Affects Versions: gogo-0.6.1
>            Reporter: Richard S. Hall
>            Assignee: Derek Baum
>             Fix For: gogo-0.8.0
>
>
> To start the Gogo shell non-interactively, you have to specify a dummy command and tell it not to shutdown in its configuration...something like this:
>     gosh.args=--noshutdown -c noop=true
> This is not necessarily the most straightforward approach and it also results in the gosh_profile being executed and the MOTD being displayed, which doesn't really make sense in the non-interactive use case.
> It seems like it would be better to have an explicit flag to tell the Gogo shell to start up non-interactively (e.g., --noninteractive), which would also imply not shutting down, but wouldn't require a dummy command, nor execute the gosh_profile.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-2661) [Gogo] It should be easier to start Gogo shell non-interactively

Posted by "Derek Baum (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921062#action_12921062 ] 

Derek Baum commented on FELIX-2661:
-----------------------------------

OK -i alias removed.

> [Gogo] It should be easier to start Gogo shell non-interactively
> ----------------------------------------------------------------
>
>                 Key: FELIX-2661
>                 URL: https://issues.apache.org/jira/browse/FELIX-2661
>             Project: Felix
>          Issue Type: Improvement
>          Components: Gogo Shell
>    Affects Versions: gogo-0.6.1
>            Reporter: Richard S. Hall
>            Assignee: Derek Baum
>             Fix For: gogo-0.8.0
>
>
> To start the Gogo shell non-interactively, you have to specify a dummy command and tell it not to shutdown in its configuration...something like this:
>     gosh.args=--noshutdown -c noop=true
> This is not necessarily the most straightforward approach and it also results in the gosh_profile being executed and the MOTD being displayed, which doesn't really make sense in the non-interactive use case.
> It seems like it would be better to have an explicit flag to tell the Gogo shell to start up non-interactively (e.g., --noninteractive), which would also imply not shutting down, but wouldn't require a dummy command, nor execute the gosh_profile.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (FELIX-2661) [Gogo] It should be easier to start Gogo shell non-interactively

Posted by "Derek Baum (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Derek Baum resolved FELIX-2661.
-------------------------------

    Resolution: Fixed

added --nointeractive flag to gosh, so no interactive startup can now be achieved using:

$ java -Dgosh.args=--nointeractive bin/felix.jar

It is no longer necessary to specify a dummy command like '-sc echo'. The gosh_profile is not run in non-interactive mode (so the gogo banner will not be displayed). However, new sessions created by telnet or ssh, will be interactive and thus run gosh_profile and show gogo banner.





> [Gogo] It should be easier to start Gogo shell non-interactively
> ----------------------------------------------------------------
>
>                 Key: FELIX-2661
>                 URL: https://issues.apache.org/jira/browse/FELIX-2661
>             Project: Felix
>          Issue Type: Improvement
>          Components: Gogo Shell
>    Affects Versions: gogo-0.6.1
>            Reporter: Richard S. Hall
>            Assignee: Derek Baum
>             Fix For: gogo-0.8.0
>
>
> To start the Gogo shell non-interactively, you have to specify a dummy command and tell it not to shutdown in its configuration...something like this:
>     gosh.args=--noshutdown -c noop=true
> This is not necessarily the most straightforward approach and it also results in the gosh_profile being executed and the MOTD being displayed, which doesn't really make sense in the non-interactive use case.
> It seems like it would be better to have an explicit flag to tell the Gogo shell to start up non-interactively (e.g., --noninteractive), which would also imply not shutting down, but wouldn't require a dummy command, nor execute the gosh_profile.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-2661) [Gogo] It should be easier to start Gogo shell non-interactively

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921018#action_12921018 ] 

Richard S. Hall commented on FELIX-2661:
----------------------------------------

It is not clear that "-i" is a good alias for "--nointeractive"...

> [Gogo] It should be easier to start Gogo shell non-interactively
> ----------------------------------------------------------------
>
>                 Key: FELIX-2661
>                 URL: https://issues.apache.org/jira/browse/FELIX-2661
>             Project: Felix
>          Issue Type: Improvement
>          Components: Gogo Shell
>    Affects Versions: gogo-0.6.1
>            Reporter: Richard S. Hall
>            Assignee: Derek Baum
>             Fix For: gogo-0.8.0
>
>
> To start the Gogo shell non-interactively, you have to specify a dummy command and tell it not to shutdown in its configuration...something like this:
>     gosh.args=--noshutdown -c noop=true
> This is not necessarily the most straightforward approach and it also results in the gosh_profile being executed and the MOTD being displayed, which doesn't really make sense in the non-interactive use case.
> It seems like it would be better to have an explicit flag to tell the Gogo shell to start up non-interactively (e.g., --noninteractive), which would also imply not shutting down, but wouldn't require a dummy command, nor execute the gosh_profile.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-2661) [Gogo] It should be easier to start Gogo shell non-interactively

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921059#action_12921059 ] 

Richard S. Hall commented on FELIX-2661:
----------------------------------------

I'm fine with just having the long name.

> [Gogo] It should be easier to start Gogo shell non-interactively
> ----------------------------------------------------------------
>
>                 Key: FELIX-2661
>                 URL: https://issues.apache.org/jira/browse/FELIX-2661
>             Project: Felix
>          Issue Type: Improvement
>          Components: Gogo Shell
>    Affects Versions: gogo-0.6.1
>            Reporter: Richard S. Hall
>            Assignee: Derek Baum
>             Fix For: gogo-0.8.0
>
>
> To start the Gogo shell non-interactively, you have to specify a dummy command and tell it not to shutdown in its configuration...something like this:
>     gosh.args=--noshutdown -c noop=true
> This is not necessarily the most straightforward approach and it also results in the gosh_profile being executed and the MOTD being displayed, which doesn't really make sense in the non-interactive use case.
> It seems like it would be better to have an explicit flag to tell the Gogo shell to start up non-interactively (e.g., --noninteractive), which would also imply not shutting down, but wouldn't require a dummy command, nor execute the gosh_profile.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Work started: (FELIX-2661) [Gogo] It should be easier to start Gogo shell non-interactively

Posted by "Derek Baum (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on FELIX-2661 started by Derek Baum.

> [Gogo] It should be easier to start Gogo shell non-interactively
> ----------------------------------------------------------------
>
>                 Key: FELIX-2661
>                 URL: https://issues.apache.org/jira/browse/FELIX-2661
>             Project: Felix
>          Issue Type: Improvement
>          Components: Gogo Shell
>    Affects Versions: gogo-0.6.1
>            Reporter: Richard S. Hall
>            Assignee: Derek Baum
>             Fix For: gogo-0.8.0
>
>
> To start the Gogo shell non-interactively, you have to specify a dummy command and tell it not to shutdown in its configuration...something like this:
>     gosh.args=--noshutdown -c noop=true
> This is not necessarily the most straightforward approach and it also results in the gosh_profile being executed and the MOTD being displayed, which doesn't really make sense in the non-interactive use case.
> It seems like it would be better to have an explicit flag to tell the Gogo shell to start up non-interactively (e.g., --noninteractive), which would also imply not shutting down, but wouldn't require a dummy command, nor execute the gosh_profile.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.