Escaping quotes in bash broken
See original GitHub issueWhen 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
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (9 by maintainers)
Top 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 >
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
It finally works! Tested in firefox as well. Here is working example: https://codepen.io/anon/pen/MdxXKg Thank you!
@Inzeppelin, released v9.15.9… however, I’m unsure how long it takes for it to be uploaded to the CDN.