-
Notifications
You must be signed in to change notification settings - Fork 144
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
silent failure in case of unbalanced quotes #141
Comments
ah, yes, this is basically the same root cause as #132, except we don't have a "you wrote half a string" error message yet. I must admit I am very busy at the minute so won't get a fix out very soon, but pull requests are welcome. However, it will be reasonably tricky to fix, given the bidirectional nesting of quotes, and also heredocs: these are valid: |
I have tested the scenario I have countered and #132. Both seem to use PS2 prompt. On my MacOS:
On Debian-based system:
If you ask me, a correct way to handle this situation is to treat appearance of PS2 as a fault. |
ah, of course, brilliant suggestion @abbbe! that should be pretty easy to detect, you're right. |
This is actually a duplicate of #118 |
Seems to be, yes. Just as a side node — I can’t shake the feeling all the fixes we come up with will be dirty hacks (of varying degree of dirtiness) until bash adds proper support for REPLs. Like use “\0” instead of “\n” to indicate the end of the command. |
The following screenshot illustrates the issue:
When this notebook is executed, cell#3 remains marked '[*]' while in reality it has failed silently and execution of the next cells can continue. Expected behavior - execution of cell#3 should fail with some kind of an error message.
The text was updated successfully, but these errors were encountered: