Skip to content

Incorrect handling of special characters in prompts from files #1

@malloc-error

Description

@malloc-error

What happened?

When piping a file that contains special characters (e.g., quotes, backticks, dollar signs) into a prompt, the characters are not always escaped or interpreted correctly. This can lead to unexpected errors from the API or malformed output.

What did you expect to happen?

Expected Behavior:
The CLI should properly handle and escape all special characters from piped input to ensure the prompt sent to the Gemini API is exactly as intended.

Client information

Client Information

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

> /about
# paste output here

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions