karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jamie goodyear (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (KARAF-1215) Shell scripts are incompatible with /bin/sh on Solaris
Date Fri, 27 Apr 2012 23:04:51 GMT

     [ https://issues.apache.org/jira/browse/KARAF-1215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jamie goodyear closed KARAF-1215.
---------------------------------

    
> Shell scripts are incompatible with /bin/sh on Solaris
> ------------------------------------------------------
>
>                 Key: KARAF-1215
>                 URL: https://issues.apache.org/jira/browse/KARAF-1215
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.5, 3.0.0
>         Environment: SunOS
>            Reporter: Igor Lazebny
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.6, 3.0.0
>
>         Attachments: scripts-patch.zip
>
>
> The most restricted sh implmentation must be taken into account for all scripts.
> At the moment, "#!/bin/sh" is specified in shell file headers, but more advanced bash
syntax/features are used in the code.
> For example in stop script:
> {code}
> export KARAF_SCRIPT="stop"
> if [ -e "$DIRNAME/setenv" ]; then
>   . "$DIRNAME/setenv"
> fi
> {code}
> should be changed to:
> {code}
> KARAF_SCRIPT="stop"; export KARAF_SCRIPT
> if [ -f "$DIRNAME/setenv" ]; then
>   . "$DIRNAME/setenv"
> fi
> {code}
> that would work both, on bin/sh and /bin/bash
> The same for admin, client, karaf, start scripts

--
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

       

Mime
View raw message