We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#!/usr/bin/env bash function to_decimal () { echo "$(("$1"#"$2"))" } to_decimal 16 ff
The function to_decimal converts the number "$2" in base "$1" to decimal. The parser fails to recognize this instruction.
to_decimal
"$2"
"$1"
The text was updated successfully, but these errors were encountered:
Thanks for reporting this issue. It seems to be a grammar issue.
I create an issue: tree-sitter/tree-sitter-bash#62
Sorry, something went wrong.
In my version of bash I actually get an error here:
"line 3: "16"#"ff": syntax error: operand expected (error token is ""16"#"ff"")"
$ bash --version GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18) Copyright (C) 2007 Free Software Foundation, Inc.
This seems to have been fixed in the newer version of the grammar
No branches or pull requests
The function
to_decimal
converts the number"$2"
in base"$1"
to decimal. The parser fails to recognize this instruction.The text was updated successfully, but these errors were encountered: