Issue Details (XML | Word | Printable)

Key: MNG-3341
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Olivier Lamy
Reporter: Daniel Harvey
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 2 & 3

Bash auto-completion script in mini guide contains syntax error

Created: 29/Dec/07 09:40 PM   Updated: 03/Jan/08 10:35 AM   Resolved: 03/Jan/08 10:35 AM
Component/s: Documentation: Guides
Affects Version/s: 2.0.8
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide

The Mini Guide "Guide to Maven 2.x auto completion using BASH" at http://maven.apache.org/guides/mini/guide-bash-m2-completion.html contains an extra space in one line of the script which caused it to fail.

The line

cur=${ COMP_WORDS[COMP_CWORD]}

should be

cur=${COMP_WORDS[COMP_CWORD]}

i.e. no space between "${" and "COMP_WORDS"

Works perfectly otherwise! Thanks.



Olivier Lamy added a comment - 03/Jan/08 10:35 AM

fixed in rev 608553.
Thanks.