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