question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong parsing for the dollar sign "$" in shell code-blocks

See original GitHub issue

When there is a dollar sign in two consecutive shell code-blocks, the displayed preview gets messed up: image

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:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
corrieanncommented, Jan 26, 2021

Thanks for the report! This should now be fixed.

0reactions
xmodarcommented, Jan 21, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found