Skip to content

Weird problem with double quotes in shell on Windows platform. #7781

@0xfk0

Description

@0xfk0

Cannot use double quotes in any windows shell-command.

See an example:

running findstr /n "class MainForm" *.cs

Tool Details
command
findstr /n "class MainForm" *.cs

Output
FINDSTR: Cannot open MainForm"

Command exited with code 1

Model tries to use distinct commands to do basic tasks, tries to use powershell. But if the command contains double quotes, command interpreted incorrectly and gives an error.

Looks like word-splitting on spaces exist despite of double quotes. Details unknown.

Due to this bug shell on Windows is mostly unusable. Model can spend up to ten steps to do primitive action like reading a file. Frequently model finishes with writing python-script and running it, or something like this.

diagnostics_20260310_1.zip


To Reproduce
Steps to reproduce the behavior:

  1. Run Goose on windows
  2. Ask a model to run the command findstr /n "word1 word2" *.txt
  3. You will see error message like: FINDSTR: Cannot open word2"
  4. Pay attention, shell command is split on spaces despite of existing double quotes.

Expected behavior

Such commands as shown in example must not give an error.


Please provide the following information

  • OS & Arch: windows 6.2.9200 x86_64
  • Interface: UI
  • Version: 1.27.2
  • Extensions enabled: developer
  • Provider & Model: custom_deepinfra – zai-org/GLM-4.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions