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

CLI history can store every command only once

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.DR11
    • 7.0.0.DR5
    • CLI
    • None
    • Hide
      • reproduce
        rm ~/.jboss-cli-history
        cd $JBOSS_HOME/bin
        ./standalone.sh &
        
        ./jboss-cli.sh -c
        :read-attribute(name=server-state)
        :read-attribute(name=product-name)
        exit
        
        ./jboss-cli.sh -c
        :read-attribute(name=product-name)
        :read-attribute(name=running-mode)
        exit
        
        cat .jboss-cli-history
        
      • Actual
        :read-attribute(name=server-state)
        :read-attribute(name=product-name)
        :read-attribute(name=running-mode)
        exit
        
      • Expected
        :read-attribute(name=server-state)
        :read-attribute(name=product-name)
        exit
        :read-attribute(name=product-name)
        :read-attribute(name=running-mode)
        exit
        
      Show
      reproduce rm ~/.jboss-cli-history cd $JBOSS_HOME/bin ./standalone.sh & ./jboss-cli.sh -c :read-attribute(name=server-state) :read-attribute(name=product-name) exit ./jboss-cli.sh -c :read-attribute(name=product-name) :read-attribute(name=running-mode) exit cat .jboss-cli-history Actual :read-attribute(name=server-state) :read-attribute(name=product-name) :read-attribute(name=running-mode) exit Expected :read-attribute(name=server-state) :read-attribute(name=product-name) exit :read-attribute(name=product-name) :read-attribute(name=running-mode) exit

      Commands logged in .jboss-cli-history file are overwritten every time. If we called command sometimes in the past, it is removed from history and appended to the end of the history file.

              remerson@redhat.com Ryan Emerson
              pkremens@redhat.com Petr Kremensky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: