de-jcup / eclipse-bash-editor

Bash editor plugin for eclipse
https://marketplace.eclipse.org/content/bash-editor
Apache License 2.0
38 stars 12 forks source link

ANSI-C quoting error #223

Open patrick-melo opened 4 years ago

patrick-melo commented 4 years ago

When I pasted the code below into the editor, I see an error. It appears that the editor doesn't support ANSI-C Quoting (https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html#ANSI_002dC-Quoting).

Code

#!/bin/bash
main() {
     text=$'"can\'t"'
     echo $text 
}
main

Error

Multiple markers at this line

patrick-melo commented 4 years ago

Also, when I start typing the main function, it replaces my curly braces with square brackets. Is this related to the editor as well? Does it already have a ticket?

de-jcup commented 3 years ago

I can confirm, with Version 2.5.0 on eclipse 2020-12 I got the same problem about curly braces image

Output is:

albert@devtux:~/test $./test.sh
"can't"