You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Burn Lewis (JIRA)" <ui...@incubator.apache.org> on 2008/08/26 00:35:44 UTC

[jira] Created: (UIMA-1158) Some shell scripts don't work on Ubuntu Linux

Some shell scripts don't work on Ubuntu Linux
---------------------------------------------

                 Key: UIMA-1158
                 URL: https://issues.apache.org/jira/browse/UIMA-1158
             Project: UIMA
          Issue Type: Bug
          Components: Async Scaleout
    Affects Versions: 2.2.2
            Reporter: Burn Lewis


Ubuntu uses /bin/dash as the default shell and we have some bashisms in ours, e.g. in startBroker.sh.
Simplest fix is probably to change #!/bin/sh to #!/bin/bash 

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


[jira] Commented: (UIMA-1158) Some shell scripts don't work on Ubuntu Linux

Posted by "Thilo Goetz (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625663#action_12625663 ] 

Thilo Goetz commented on UIMA-1158:
-----------------------------------

No.  There are plenty of systems out there that don't come with a bash by default (Solaris and Aix, for example).  It is best not to use bash syntax if you want your scripts to be portable.  If you don't feel like supporting other shells, name your scripts .bash, and everybody knows what they're up against.

And see Burn's issue description in a browser for what happens when you turn on Wiki syntax.  That's what I mean by it not being optional.  I'm leaning towards turning the wiki stuff off.  If it was truly optional, it would be fine.



> Some shell scripts don't work on Ubuntu Linux
> ---------------------------------------------
>
>                 Key: UIMA-1158
>                 URL: https://issues.apache.org/jira/browse/UIMA-1158
>             Project: UIMA
>          Issue Type: Bug
>          Components: Async Scaleout
>    Affects Versions: 2.2.2
>            Reporter: Burn Lewis
>
> Ubuntu uses /bin/dash as the default shell and we have some bashisms in ours, e.g. in startBroker.sh.
> Simplest fix is probably to change #!/bin/sh to #!/bin/bash 

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


[jira] Updated: (UIMA-1158) Some shell scripts don't work on Ubuntu Linux

Posted by "Burn Lewis (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Burn Lewis updated UIMA-1158:
-----------------------------

    Attachment: UIMA-1158-core.patch
                UIMA-1158-as.patch

These fix the shell scripts in uima-as and in core uima by removing any bashisms ... should now run under POSIX shells such as dash.

> Some shell scripts don't work on Ubuntu Linux
> ---------------------------------------------
>
>                 Key: UIMA-1158
>                 URL: https://issues.apache.org/jira/browse/UIMA-1158
>             Project: UIMA
>          Issue Type: Bug
>          Components: Async Scaleout
>    Affects Versions: 2.2.2
>            Reporter: Burn Lewis
>         Attachments: UIMA-1158-as.patch, UIMA-1158-core.patch
>
>
> Ubuntu uses /bin/dash as the default shell and we have some bashisms in ours, e.g. in startBroker.sh.
> Simplest fix is probably to change #!/bin/sh to #!/bin/bash 

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


Re: [jira] Commented: (UIMA-1158) Some shell scripts don't work on Ubuntu Linux

Posted by Thilo Goetz <tw...@gmx.de>.
Burn Lewis (JIRA) wrote:
>     [ https://issues.apache.org/jira/browse/UIMA-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625728#action_12625728 ] 
> 
> Burn Lewis commented on UIMA-1158:
> ----------------------------------
> 
> This time I'll preview my comment first!

That's exactly what I don't like about the wiki stuff.  You can't
just type text any more, you have to make sure you don't violate
any syntax constraints.  And there's no rich text widget, either.

--Thilo


[jira] Commented: (UIMA-1158) Some shell scripts don't work on Ubuntu Linux

Posted by "Burn Lewis (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625728#action_12625728 ] 

Burn Lewis commented on UIMA-1158:
----------------------------------

This time I'll preview my comment first!

So instead of the simple but incorrect fix of changing #\!/bin/sh to #\!/bin/bash we'll have to change 1 or 2 other lines.



> Some shell scripts don't work on Ubuntu Linux
> ---------------------------------------------
>
>                 Key: UIMA-1158
>                 URL: https://issues.apache.org/jira/browse/UIMA-1158
>             Project: UIMA
>          Issue Type: Bug
>          Components: Async Scaleout
>    Affects Versions: 2.2.2
>            Reporter: Burn Lewis
>
> Ubuntu uses /bin/dash as the default shell and we have some bashisms in ours, e.g. in startBroker.sh.
> Simplest fix is probably to change #!/bin/sh to #!/bin/bash 

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


[jira] Closed: (UIMA-1158) Some shell scripts don't work on Ubuntu Linux

Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marshall Schor closed UIMA-1158.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3AS
                   2.3
         Assignee: Marshall Schor

applied patches.

> Some shell scripts don't work on Ubuntu Linux
> ---------------------------------------------
>
>                 Key: UIMA-1158
>                 URL: https://issues.apache.org/jira/browse/UIMA-1158
>             Project: UIMA
>          Issue Type: Bug
>          Components: Async Scaleout
>    Affects Versions: 2.2.2
>            Reporter: Burn Lewis
>            Assignee: Marshall Schor
>             Fix For: 2.3, 2.3AS
>
>         Attachments: UIMA-1158-as.patch, UIMA-1158-core.patch
>
>
> Ubuntu uses /bin/dash as the default shell and we have some bashisms in ours, e.g. in startBroker.sh.
> Simplest fix is probably to change #!/bin/sh to #!/bin/bash 

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