Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-5545

Echo tab completion suggests variables without $ prefix

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 7.1.0.DR10
    • 7.1.0.DR2
    • CLI, User Experience
    • None

      Description:
      echo command prints all variables in tab auto-complete even without typing $ prefix
      This duplicates functionality of 'set' with no arguments.

      Steps to reproduce

      [disconnected /] set myvar1=value1
      [disconnected /] set myvar2=value2
      [disconnected /] set
      myvar1=value1
      myvar2=value2
      

      Actual

      [disconnected /] echo <TAB>
      --help  myvar1  myvar2   #should not suggest variables
      [disconnected /] echo $<TAB>myvar<TAB> #expected, auto-completes with $prefix
      myvar1  myvar2  
      [disconnected /] echo myvar<TAB> #autocompletes variable without $prefix
      myvar1  myvar2  
      

      Expected

      [disconnected /] echo <TAB>
      --help
      [disconnected /] echo $<TAB>myvar<TAB>
      myvar1  myvar2  
      [disconnected /] echo myvar<TAB> #does not suggest anything
      

              jdenise@redhat.com Jean Francois Denise
              mschvarc Martin Schvarcbacher (Inactive)
              Martin Schvarcbacher Martin Schvarcbacher (Inactive)
              Martin Schvarcbacher Martin Schvarcbacher (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: