You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 15, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on May 15, 2026. It is now read-only.
Command validation fails with 'Bad substitution' error on shell array indexing #3529
I couldn't find specific information on how Roo Code's command validation handles shell array indexing or the "Bad substitution" error in the documentation. However, it seems that the issue might be related to how the shell-quote library parses these expressions. You might want to check if there are any open issues or discussions related to this in the repository. Additionally, consider looking into alternative ways to handle array indexing or variable substitution that might be compatible with the current parsing logic.
The issue appears to be in the shell-quote library's handling of nested parameter expansion inside array indexing expressions. Added a minimal reproducer showing the specific parsing failure.
Activity
dosubot commentedon May 13, 2025
I couldn't find specific information on how Roo Code's command validation handles shell array indexing or the "Bad substitution" error in the documentation. However, it seems that the issue might be related to how the
shell-quotelibrary parses these expressions. You might want to check if there are any open issues or discussions related to this in the repository. Additionally, consider looking into alternative ways to handle array indexing or variable substitution that might be compatible with the current parsing logic.To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
KJ7LNW commentedon May 13, 2025
Created upstream issue in shell-quote repository: ljharb/shell-quote#19
The issue appears to be in the shell-quote library's handling of nested parameter expansion inside array indexing expressions. Added a minimal reproducer showing the specific parsing failure.