Maven 2 & 3

Bash auto-completion script in mini guide contains syntax error

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 2.0.8
  • Fix Version/s: None
  • Component/s: Documentation: Guides
  • Labels:
    None
  • Number of attachments :
    0

Description

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.

Activity

Hide
Olivier Lamy added a comment -

fixed in rev 608553.
Thanks.

Show
Olivier Lamy added a comment - fixed in rev 608553. Thanks.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: