Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1695

Echo tab completion suggests variables without $ prefix

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.0.0.Alpha16
    • Component/s: CLI
    • Labels:
      None

      Description

      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
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jdenise Jean Francois Denise
                  Reporter:
                  mschvarc Martin Schvarcbacher
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: