| Issue 1429: | Array length in bash scripts is interpreted as a comment by gerrit | |
| 2 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. Submit a .sh (bash) file that uses an array and array length syntax
2. Array length (for some array called myArray) is denoted by: ${#myArray[@]}
3. View the script in a submission
What is the expected output? What do you see instead?
Gerrit is showing the rest of the line after # as a comment when it should not be. The bash script array length, which uses #, should not be interpreted as a comment.
|
|
| ► Sign in to add a comment |