<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:55:46 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[CONTROLLER-1526] &quot;karaf&quot; script invokes /bin/sh but requires /bin/bash functions</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1526</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;The bin/mvn script uses the &quot;local&quot; command which is a shell builtin of bash and similar shells, but is not required for POSIX-compliance in sh. When I attempt to run karaf on a Solaris system, I see the following output:&lt;/p&gt;

&lt;p&gt;root@solaris:/opendaylight/bin# ./karaf&lt;br/&gt;
./karaf&lt;span class=&quot;error&quot;&gt;&amp;#91;172&amp;#93;&lt;/span&gt;: local: not found &lt;span class=&quot;error&quot;&gt;&amp;#91;No such file or directory&amp;#93;&lt;/span&gt;&lt;br/&gt;
./karaf&lt;span class=&quot;error&quot;&gt;&amp;#91;182&amp;#93;&lt;/span&gt;: local: not found &lt;span class=&quot;error&quot;&gt;&amp;#91;No such file or directory&amp;#93;&lt;/span&gt;&lt;br/&gt;
./karaf&lt;span class=&quot;error&quot;&gt;&amp;#91;183&amp;#93;&lt;/span&gt;: local: not found &lt;span class=&quot;error&quot;&gt;&amp;#91;No such file or directory&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Lines 172, 182 and 183 invoke &quot;local&quot; to make local variables to the function. According to &quot;man bash&quot;, this is a shell builtin. However, bin/karaf is invoked as:&lt;/p&gt;

&lt;p&gt;#!/bin/sh&lt;/p&gt;

&lt;p&gt;On most flavors of linux, this resolves to bash or dash which probably runs in a restricted environment after checking to see that its $0 is sh. But on Solaris&apos;s /bin/sh is actually ksh93 for backwards compatibility.&lt;/p&gt;

&lt;p&gt;Since &quot;local&quot; is not part of a POSIX-compliant /bin/sh, depending on it in a script that is invoked with /bin/sh is a bug.&lt;/p&gt;

&lt;p&gt;(this explain is borrowed from &lt;a href=&quot;https://issues.apache.org/jira/browse/MNG-5852&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://issues.apache.org/jira/browse/MNG-5852&lt;/a&gt;)&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="26080">CONTROLLER-1526</key>
            <summary>&quot;karaf&quot; script invokes /bin/sh but requires /bin/bash functions</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="adetalhouet">Alexis de Talhou&#235;t</reporter>
                        <labels>
                    </labels>
                <created>Wed, 8 Jun 2016 21:10:57 +0000</created>
                <updated>Thu, 3 May 2018 14:50:10 +0000</updated>
                            <resolved>Mon, 1 Aug 2016 14:01:08 +0000</resolved>
                                    <version>Beryllium</version>
                                                    <component>karaf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="51452" author="adetalhouet" created="Wed, 8 Jun 2016 21:11:48 +0000"  >&lt;p&gt;&amp;gt; The bin/mvn script&lt;br/&gt;
The bin/karaf script&lt;/p&gt;</comment>
                            <comment id="51453" author="adetalhouet" created="Fri, 10 Jun 2016 12:19:18 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/40071/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/40071/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="51454" author="adetalhouet" created="Mon, 1 Aug 2016 14:01:08 +0000"  >&lt;p&gt;beryllium --&amp;gt; &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/42645/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/42645/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6030</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=6030]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i02r47:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>