Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANSI-C quoting error #223

Open
patrick-melo opened this issue Sep 3, 2020 · 2 comments
Open

ANSI-C quoting error #223

patrick-melo opened this issue Sep 3, 2020 · 2 comments

Comments

@patrick-melo
Copy link

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

  • This curly brace is not closed. So function 'main' is not valid.
  • It seems this opening bracket is missing a closing one.
@patrick-melo
Copy link
Author

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 de-jcup added this to the 2.6.0 milestone Feb 19, 2021
@de-jcup
Copy link
Owner

de-jcup commented Feb 19, 2021

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"

@de-jcup de-jcup added the bug label Feb 19, 2021
@de-jcup de-jcup removed this from the 2.6.0 milestone Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants