<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:06:03 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>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-4460] Improve ctrl-C handling in the shell</title>
                <link>https://jira.mongodb.org/browse/SERVER-4460</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In the current code, hitting ctrl-C in the shell behaves differently on Windows than on Linux, and in neither does it cleanly exit multi-line mode the way it did in Linux version 1.8.&lt;/p&gt;

&lt;p&gt;1)  Capture ctrl-C at the &quot;read from keyboard&quot; step in Windows like we do in Linux and respond the same way in both;&lt;br/&gt;
2)  Cleanly exit multi-line mode in both Linux and Windows the way we did in 1.8;&lt;br/&gt;
3)  Decide whether ctrl-C should ever exit the shell (it does now) or if it should just cancel the current input line (if executed at an active prompt);&lt;br/&gt;
4)  Decide what it should do if the shell is waiting for a response from the server.&lt;/p&gt;</description>
                <environment></environment>
        <key id="26272">SERVER-4460</key>
            <summary>Improve ctrl-C handling in the shell</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="2">Won&apos;t Fix</resolution>
                                        <assignee username="backlog-server-stm">Backlog - Server Tooling and Methods (STM)</assignee>
                                    <reporter username="tad">Tad Marshall</reporter>
                        <labels>
                            <label>move-stm</label>
                            <label>platforms-re-triaged</label>
                            <label>polish</label>
                    </labels>
                <created>Thu, 8 Dec 2011 20:09:09 +0000</created>
                <updated>Tue, 6 Dec 2022 05:38:39 +0000</updated>
                            <resolved>Fri, 19 Nov 2021 20:12:02 +0000</resolved>
                                                                    <component>Shell</component>
                                        <votes>14</votes>
                                    <watches>13</watches>
                                                                                                                <comments>
                            <comment id="3701256" author="thomas.schubert" created="Mon, 5 Apr 2021 17:37:51 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tukusejssirs%40protonmail.com&quot; class=&quot;user-hover&quot; rel=&quot;tukusejssirs@protonmail.com&quot;&gt;tukusejssirs@protonmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;For an improved UX, please check out our &lt;a href=&quot;https://docs.mongodb.com/mongodb-shell/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;new shell&lt;/a&gt;, which is currently in beta. I&apos;ve started using this new shell and appreciate the improvements we&apos;ve made (pressing Ctrl+C once does not exit) and hope that you do too!&lt;/p&gt;

&lt;p&gt;Best,&lt;br/&gt;
Kelsey&lt;/p&gt;</comment>
                            <comment id="3690862" author="JIRAUSER1259224" created="Tue, 30 Mar 2021 11:45:51 +0000"  >&lt;p&gt;I hope this issue is fixed soon. I am a MongoDB newbie and a long-time Linux user. I hate that every time I press Ctrl+C, it quits Mongo Shell. It makes me nervous and makes me try MongoDB no more.&lt;/p&gt;

&lt;p&gt;From UX point of view, this &lt;em&gt;issue&lt;/em&gt; should be classified as &lt;b&gt;&lt;em&gt;severe UX bug&lt;/em&gt;&lt;/b&gt;. You should at least make it configurable.&lt;/p&gt;</comment>
                            <comment id="103619" author="glenn" created="Mon, 26 Mar 2012 16:17:20 +0000"  >&lt;p&gt;^C should start a new prompt, but it should never quit the shell; see GDB and Postgresql, for example.  You should be able to press ^C to cancel input or a running operation, without worrying that you might accidentally terminate the shell.&lt;/p&gt;</comment>
                            <comment id="71797" author="auto" created="Thu, 8 Dec 2011 20:28:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4458&quot; title=&quot;Code cleanup broke &amp;quot;two blank lines exits multi-line mode&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4458&quot;&gt;&lt;del&gt;SERVER-4458&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4460&quot; title=&quot;Improve ctrl-C handling in the shell&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4460&quot;&gt;&lt;del&gt;SERVER-4460&lt;/del&gt;&lt;/a&gt; Improve ctrl-C handling in the shell&lt;/p&gt;

&lt;p&gt;Repair the incorrect edit I made in &quot;code cleanup&quot; by moving the space&lt;br/&gt;
out from between the quotes in &apos;if ( code.find( &quot;\n\n\n&quot; ) != string::npos )&apos;&lt;br/&gt;
Turn off ctrl-C handling by the Console in Windows so we get the ctrl-C&lt;br/&gt;
and can decide what to do with it.  Handle it the same way in Linux and&lt;br/&gt;
Windows.  Set the &apos;gotInterrupted&apos; flag on a ctrl-C so the multi-line&lt;br/&gt;
code can exit cleanly on a ctrl-C.  This doesn&apos;t resolve &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4460&quot; title=&quot;Improve ctrl-C handling in the shell&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4460&quot;&gt;&lt;del&gt;SERVER-4460&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
because it doesn&apos;t answer the questions about whether to exit the shell&lt;br/&gt;
on a ctrl-C nor about what to do if a server command is running.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e5bd79b33f310f4ec2f35a71efd715ef92b9680c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e5bd79b33f310f4ec2f35a71efd715ef92b9680c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="71796" author="auto" created="Thu, 8 Dec 2011 20:28:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4458&quot; title=&quot;Code cleanup broke &amp;quot;two blank lines exits multi-line mode&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4458&quot;&gt;&lt;del&gt;SERVER-4458&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4460&quot; title=&quot;Improve ctrl-C handling in the shell&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4460&quot;&gt;&lt;del&gt;SERVER-4460&lt;/del&gt;&lt;/a&gt; Improve ctrl-C handling in the shell&lt;/p&gt;

&lt;p&gt;Repair the incorrect edit I made in &quot;code cleanup&quot; by moving the space&lt;br/&gt;
out from between the quotes in &apos;if ( code.find( &quot;\n\n\n&quot; ) != string::npos )&apos;&lt;br/&gt;
Turn off ctrl-C handling by the Console in Windows so we get the ctrl-C&lt;br/&gt;
and can decide what to do with it.  Handle it the same way in Linux and&lt;br/&gt;
Windows.  Set the &apos;gotInterrupted&apos; flag on a ctrl-C so the multi-line&lt;br/&gt;
code can exit cleanly on a ctrl-C.  This doesn&apos;t resolve &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4460&quot; title=&quot;Improve ctrl-C handling in the shell&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4460&quot;&gt;&lt;del&gt;SERVER-4460&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
because it doesn&apos;t answer the questions about whether to exit the shell&lt;br/&gt;
on a ctrl-C nor about what to do if a server command is running.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e5bd79b33f310f4ec2f35a71efd715ef92b9680c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e5bd79b33f310f4ec2f35a71efd715ef92b9680c&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="55869">SERVER-7616</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="16268">SERVER-2986</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="484575">SERVER-32777</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25142"><![CDATA[Server Tooling & Methods]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 8 Dec 2011 20:28:51 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 44 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-624</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 44 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>backlog-server-stm</customfieldvalue>
            <customfieldvalue>glenn</customfieldvalue>
            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
            <customfieldvalue>tad</customfieldvalue>
            <customfieldvalue>tukusejssirs@protonmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrojkv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr9ehj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3789</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht0q0f:</customfieldvalue>

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