tdenniston / bish

Bish is a language that compiles to Bash. It's designed to give shell scripting a more comfortable and modern feel.
MIT License
1.48k stars 36 forks source link

Escape $ character #36

Closed heyvito closed 9 years ago

heyvito commented 9 years ago

Is there any way to do it? I'm struggling to use awk in my bish script. Already tried the following combinations:

The result is the same, no matter the combination:

Parsing error: Expected variable to be a symbol near character '1', line 2
egorsmkv commented 9 years ago

The dollar is used to declare variables, so getting the error. You need to come up with another scheme for writing call arbitrary commands.

Author library already knows about it.

heyvito commented 9 years ago

Oh mate, I'm sorry. I didn't know he knew about it. He may close this issue if he want.

Thank you!

egorsmkv commented 9 years ago

@victorgama Nothing to apologize for.

Language is only now developing. While sending a manual sooner :)

tdenniston commented 9 years ago

Hey, thanks for opening the issue. Now that I know multiple people are getting stuck on this issue, I'll make it higher priority. I just need to figure out a clean way to fix it.

egorsmkv commented 9 years ago

@tdenniston Any thoughts already have?

heyvito commented 9 years ago

@tdenniston Don't mention it! (: I would love to help, but I don't have any C/C++ background.

tdenniston commented 9 years ago

@victorgama Can you verify that your issue is fixed? I added a test with the awk example, but I prefer to have you confirm it's fixed before I close it. I decided on the \$ syntax to escape dollar signs.

heyvito commented 9 years ago

@tdenniston Works perfectly! Thank you!