Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix escape sequences in prompts #1862

Closed
wants to merge 1 commit into from

Conversation

sourishkrout
Copy link
Member

@sourishkrout sourishkrout commented Dec 17, 2024

Fixes stateful/runme#709.

Prompt messages are unquoted which requires them to be valid shell. Once prompt resolution runs any "values" quoted or not are primarily being used for human-consumption. This is why we're removing backslashes from any form of parentheses.

Doing this on the client-side to keep the Program Resolver pure-shell.

@sourishkrout sourishkrout requested review from pastuxso and removed request for pastuxso December 17, 2024 18:47
@sourishkrout
Copy link
Member Author

Actually never mind. Don't want clients to diverge. Will handle this kernel-side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Env prompt: Escape sequences
1 participant