Skip to content

Gemini always uses && for command chaining in powershell, despiteinstructions not to #21997

@rnett

Description

@rnett

What happened?

Every single time it tries to run multiple commands in a single invocation, it uses && (as opposed to ;). Despite being on a windows machine, having "your on windows and using powershell" in my root GEMINI file, and even having this specific instruction in my GEMINI file:

  1. Command Chaining (PowerShell): NEVER use && for command chaining on this system. ALWAYS use ; for sequential execution (e.g., cmd1; cmd2).

What did you expect to happen?

Gemini to use ;, as instructed and as it should know how to do. It really shouldn't require telling about this.

Client information

Client Information

Run gemini to enter the interactive CLI, then run the /about command.

> /about
About Gemini CLI                                                                                                                                                                                                                                                                                                                                                                                                                                                                 │
│                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  │
│ CLI Version                                                                                                                                                       0.33.0                                                                                                                                                                                                                                                                                                         │
│ Git Commit                                                                                                                                                        696a67135                                                                                                                                                                                                                                                                                                      │
│ Model                                                                                                                                                             Auto (Gemini 3)                                                                                                                                                                                                                                                                                                │
│ Sandbox                                                                                                                                                           no sandbox                                                                                                                                                                                                                                                                                                     │
│ OS                                                                                                                                                                win32                                                                                                                                                                                                                                                                                                          │
│ Auth Method                                                                                                                                                       Logged in with Google (jnett96@gmail.com)                                                                                                                                                                                                                                                                      │
│ Tier                                                                                                                                                              Gemini Code Assist in Google One AI Pro                                                                                                                                                                                                                                                                        │
│ IDE Client                                                                                                                                                        IntelliJ IDEA                                                                                                                                                                                                                                                                                                  │

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/agentIssues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent Qualitykind/bugpriority/p3Backlog - a good idea but not currently a priority.status/bot-triaged

    Type

    No fields configured for Bug.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions