multiple lines command hangs

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Critical - P2
    • 2.5.5
    • Affects Version/s: 2.5.1
    • Component/s: CLI Module
    • Environment:
      macOS 15.5
    • 5
    • Iteration E (Jun 16 - 30)
    • Not Needed
    • Developer Tools

      Problem Statement/Rationale

      mongosh hands in case of multiple line commands 

      Steps to Reproduce

      write a multiple line command like:

      db.createCollection(
         "stocks",
         {
            timeseries: {
               timeField: "date",
               metaField: "ticker",
               granularity: "seconds"
            }
         }) 

      the shell will hang

       

              Assignee:
              Anna Henningsen
              Reporter:
              Renato Riccio
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: