-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Weird problem with double quotes in shell on Windows platform. #7781
Copy link
Copy link
Closed
Description
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.
To Reproduce
Steps to reproduce the behavior:
- Run Goose on windows
- Ask a model to run the command
findstr /n "word1 word2" *.txt - You will see error message like:
FINDSTR: Cannot open word2" - 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels