My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
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
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by sjdemart...@gmail.com, Jun 7, 2012
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

Powered by Google Project Hosting