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

CLI history can store every command only once

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Done
    • 2.0.0.Alpha5
    • 2.0.0.Beta6
    • 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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              gonthim Joe Wertz
              pkremens@redhat.com Petr Kremensky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: