<!--
RSS generated by JIRA (4.4#649-r158309) at Mon May 20 07:56:11 CDT 2013

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 add field=key&field=summary to the URL of your request.
For example:
http://dev.clojure.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=labels+%3D+shell&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://dev.clojure.org/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Clojure JIRA</title>
        <link>http://dev.clojure.org/jira/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=labels+%3D+shell</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="2" total="2"/>
                <build-info>
            <version>4.4</version>
            <build-number>649</build-number>
            <build-date>25-07-2011</build-date>
        </build-info>
<item>
            <title>[CLJS-159] Suggest removing UNIX shell executable permissions from bin/cljsc.bat</title>
                <link>http://dev.clojure.org/jira/browse/CLJS-159</link>
                <project id="10040" key="CLJS">ClojureScript</project>
                        <description>&lt;p&gt;Bash completion shows `bin/cljsc.bat` as an executable on UNIX systems&lt;br/&gt;
making it very easy to accidentally execute it. However, since &lt;br/&gt;
Windows command scripts do not work with UNIX shells, it is not &lt;br/&gt;
advisable to allow executable permissions to Windows batch scripts &lt;br/&gt;
as accidentally executing them may cause undefined behavior on such &lt;br/&gt;
systems.&lt;/p&gt;

&lt;p&gt;I strongly suggest stripping UNIX shell executable permissions from&lt;br/&gt;
`bin/cljsc.bat`.&lt;/p&gt;

&lt;p&gt;Thank you.&lt;/p&gt;

&lt;p&gt;Cheers,&lt;br/&gt;
Yesudeep.&lt;/p&gt;</description>
                <environment>Any UNIX platform.</environment>
            <key id="15267">CLJS-159</key>
            <summary>Suggest removing UNIX shell executable permissions from bin/cljsc.bat</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                <priority id="3" iconUrl="http://dev.clojure.org/jira/images/icons/priority_major.gif">Major</priority>
                    <status id="5" iconUrl="http://dev.clojure.org/jira/images/icons/status_resolved.gif">Resolved</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="-1">Unassigned</assignee>
                                <reporter username="yesudeep">Yesudeep Mangalapilly</reporter>
                        <labels>
                        <label>command</label>
                        <label>executable</label>
                        <label>linux</label>
                        <label>permissions</label>
                        <label>script</label>
                        <label>shell</label>
                        <label>unix</label>
                        <label>windows</label>
                    </labels>
                <created>Tue, 6 Mar 2012 23:31:45 -0600</created>
                <updated>Wed, 14 Mar 2012 19:22:43 -0500</updated>
                    <resolved>Wed, 14 Mar 2012 19:22:43 -0500</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="27906" author="yesudeep" created="Wed, 7 Mar 2012 00:39:12 -0600"  >&lt;p&gt;The issue also affects:&lt;/p&gt;

&lt;p&gt;  bin/cljsc.bat&lt;br/&gt;
  script/repljs.bat&lt;br/&gt;
  script/repl.bat&lt;/p&gt;
</comment>
                    <comment id="27935" author="candera" created="Mon, 12 Mar 2012 13:34:05 -0500"  >&lt;p&gt;I&apos;ve verified (on both Ubuntu Linux and Windows 7) that stripping the x bit from those files has the desired effect.&lt;/p&gt;

&lt;p&gt;The patch is almost too trivial to bother with listing here, but here it is regardless: &lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;diff --git a/bin/cljsc.bat b/bin/cljsc.bat
old mode 100755
new mode 100644
diff --git a/script/repl.bat b/script/repl.bat
old mode 100755
new mode 100644
diff --git a/script/repljs.bat b/script/repljs.bat
old mode 100755
new mode 100644
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="27952" author="dnolen" created="Wed, 14 Mar 2012 19:22:43 -0500"  >&lt;p&gt;Fixed, &lt;a href=&quot;https://github.com/clojure/clojurescript/commit/aa51a01141131736871e791918df63f185155421&quot;&gt;https://github.com/clojure/clojurescript/commit/aa51a01141131736871e791918df63f185155421&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                                                                            </customfields>
    </item>

<item>
            <title>[CLJ-959] after call to clojure.java.shell/sh, jvm won&apos;t exit</title>
                <link>http://dev.clojure.org/jira/browse/CLJ-959</link>
                <project id="10010" key="CLJ">Clojure</project>
                        <description>&lt;p&gt;Create the following four-line file, shell_example.clj:&lt;/p&gt;

&lt;p&gt;;; simple example of call to sh that causes jvm to hang after print&lt;br/&gt;
(require &apos;&lt;span class=&quot;error&quot;&gt;&amp;#91;clojure.java.shell :as shell&amp;#93;&lt;/span&gt;)&lt;br/&gt;
(shell/sh &quot;ls&quot;)&lt;br/&gt;
(println &quot;jvm should exit after this, but it doesn&apos;t&quot;)&lt;/p&gt;

&lt;p&gt;Run:&lt;br/&gt;
java -jar clojure-1.3.0.jar shell_example.clj&lt;/p&gt;

&lt;p&gt;After the message is printed, the jvm doesn&apos;t quit. It just sits there. I have to hit Ctrl-C to force the jvm to quit.&lt;/p&gt;

&lt;p&gt;This happens on 1.3 and the most recent code in github as of 3/26/2012. I imagine the jvm is waiting for a thread that hasn&apos;t terminated, but the code in the sh function doesn&apos;t look like it&apos;s doing anything obviously wrong. I&apos;m too much of a newcomer to Clojure to dig any deeper.&lt;/p&gt;

&lt;p&gt;My workaround right now is to do (System/exit 0) to force the jvm to quit.&lt;/p&gt;

&lt;p&gt;Thank you for your work on Clojure, it&apos;s simply an amazing language.&lt;/p&gt;</description>
                <environment>Reproduced on Ubuntu using Sun Java 1.6, OpenJDK 1.6, and Sun Java 1.7&lt;br/&gt;
</environment>
            <key id="15295">CLJ-959</key>
            <summary>after call to clojure.java.shell/sh, jvm won&apos;t exit</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                <priority id="3" iconUrl="http://dev.clojure.org/jira/images/icons/priority_major.gif">Major</priority>
                    <status id="1" iconUrl="http://dev.clojure.org/jira/images/icons/status_open.gif">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="-1">Unassigned</assignee>
                                <reporter username="codeforkjeff">Jeff Chiu</reporter>
                        <labels>
                        <label>shell</label>
                    </labels>
                <created>Mon, 26 Mar 2012 21:55:26 -0500</created>
                <updated>Fri, 8 Jun 2012 12:47:07 -0500</updated>
                                    <version>Release 1.3</version>
                <version>Release 1.4</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="28023" author="jafingerhut" created="Tue, 27 Mar 2012 00:19:03 -0500"  >&lt;p&gt;Jeff, this occurs in any Clojure program where certain threading mechanisms are invoked.  In your case, clojure.java.shell/sh uses future, which causes threads to be created that then sit around for about 60 seconds after everything else quits, and the main Java process does not exit until that happens.  Another way to get the program to exit quickly is to call (shutdown-agents), but that isn&apos;t any more convenient than (System/exit 0), nor is there any obvious way you can tell as a newcomer that you should be doing this.&lt;/p&gt;

&lt;p&gt;The ticket &lt;a href=&quot;http://dev.clojure.org/jira/browse/CLJ-124&quot; title=&quot;GC  Issue 120: Determine mechanism for controlling automatic shutdown of Agents, with a default policy and mechanism for changing that policy as needed&quot;&gt;CLJ-124&lt;/a&gt; is marked with status &quot;Approved&quot; at this time, which leads me to believe that perhaps soon there will be a change made to Clojure such that this situation will change.&lt;/p&gt;</comment>
                    <comment id="28750" author="jafingerhut" created="Fri, 8 Jun 2012 12:47:07 -0500"  >&lt;p&gt;This behavior is now documented on clojuredocs.org for future, and both pmap and clojure.java.shell/sh refer to future for details.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                                                                            </customfields>
    </item>
</channel>
</rss>