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

Handle lines ending with a backslash on replay and recording #294

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sparrow242
Copy link

Fix for:

Instead of sending every line directly to shlex it using a list as a buffer for lines ending with a backslash and join them together as one command before coninue processing.

That fixes the issue that the program dies with an exception when a line ends with a backslash (and the quotes are note closed) but it also leads to the behaviour that such broken lines are handle as a single line on replay and on recording.

Fix for:
- issue sloria#45
- issue sloria#247

Instead of sending every line directly to shlex it using a list
as a buffer for lines ending with a backslash and join them
together as one command before coninue processing.

That fixes the issue that the program dies with an exception when
a line ends with a backslash (and the quotes are note closed) but
it also leads to the behaviour that such broken lines are handle
as a single line on replay and on recording.
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.

1 participant