Wrong parsing for the dollar sign "$" in shell code-blocks
See original GitHub issueWhen there is a dollar sign in two consecutive shell code-blocks, the displayed preview gets messed up:
The expected output should look something like this:
echo $A
What is going on here?
echo $A
I am using Google Chrome and didn’t test other browsers. To reproduce the bug, copy the following in a new text cell:
```shell
echo $A
```
What is going on here?
```shell
echo $A
```
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Escape dollar sign in string by shell script - bash
As you know, a dollar sign marks a variable. You have to take it into account when you are typing it. You can...
Read more >Why does my shell script choke on whitespace or other ...
There's no direct way to do that. Something like code="$code $filename" breaks if the file name contains any shell special character (spaces, $ ......
Read more >Help on code completion - Code::Blocks Forums
When parsing b.c, no need to parse its included file a.h and b.h, since they are already in symbol tree. Next, a.h and...
Read more >Advanced Bash-Scripting Guide
A shell program, called a script, is an easy-to-use tool for building applications by "gluing together" system calls, tools, utilities, and ...
Read more >Markdownlint Rules
This rule is triggered when there are code blocks showing shell commands to be typed, and all of the shell commands are preceded...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for the report! This should now be fixed.
Hmm… I was working on my Windows machine to create homework for the new semester. I checked and it seems that there is no option to force LF instead of CRLF. This will definitely add some overhead as I would need to download the notebooks convert line endings and upload them back again (didn’t test this yet). Hopefully, this gets fixed soon as I only have remote access to my Linux workstation. Thanks, @blois for confirming this.