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

Using \ for line-break exits doitlive #247

Open
cmonty14 opened this issue Jul 12, 2022 · 0 comments
Open

Using \ for line-break exits doitlive #247

cmonty14 opened this issue Jul 12, 2022 · 0 comments

Comments

@cmonty14
Copy link

Hi,
I cannot use \ to enter a line-break when using a lengthy command, e.g.

$ vmcreate --project=lve \
> --user=test \
> --password=secret

Can you please advise how to fix this?

THX

sparrow242 added a commit to sparrow242/doitlive that referenced this issue Oct 8, 2024
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

No branches or pull requests

1 participant