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.

Escaping quotes in bash broken

See original GitHub issue

When using escaped quotes in bash, the highlighting breaks. This applies to latest version (currently 9.13.1).

Live Example

URL: https://plnkr.co/edit/u0diCW1oxmKhLOEwKo8W

Example bash script

#!/bin/bash
DATA=$(curl json | cut -d\" -f4)
echo "$DATA"

Sample Screenshot

screen shot 2018-12-20 at 4 25 27 pm

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Inzeppelincommented, Aug 6, 2019

It finally works! Tested in firefox as well. Here is working example: https://codepen.io/anon/pen/MdxXKg Thank you!

1reaction
marcoscacerescommented, Jul 31, 2019

@Inzeppelin, released v9.15.9… however, I’m unsure how long it takes for it to be uploaded to the CDN.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bash script escaping quotes - Unix & Linux Stack Exchange
Is there a way to escape that command correctly? UPDATE: Some progress: #!/bin/bash # This script will search for all images that are...
Read more >
How to escape double quotes in bash command
To echo a literal " inside of a double-quoted string, use the escape character \ : echo "alias N=\"cd $(pwd) && source ....
Read more >
Quotes - Greg's Wiki
There are three standard types of quotes (or four if you count backslash escaping), and two nonstandard Bash extensions.
Read more >
Escape a Single Quote in Single Quote String in Bash
In bash, strings starting with the dollar ($) symbol are treated specially. We can leverage this property to escape a single quote:
Read more >
Using quotes.
The escape quote or backslash, \, quotes or preserves the literal value of the character immediately following it. If the character has a...
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