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

Exiting the CLI after disabling and clearing history will clear content of .jboss-cli-history

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.1.0.Final
    • 2.0.10.Final
    • CLI
    • None

      According to the history --help:

       --disable    - will disable history expansion (but will not clear the
                      previously recorded history);
       --clear      - will clear the in-memory history (but not the file one).
      

      however following sequence of commands will clear the content ~/.jboss-cli-history file

      [pkremens@dhcp-10-40-5-180 ~]$ wc ~/.jboss-cli-history 
       4  6 44 /home/pkremens/.jboss-cli-history
      
      [standalone@localhost:9990 /] history --disable
      [standalone@localhost:9990 /] history --clear
      [standalone@localhost:9990 /] exit
      
      [pkremens@dhcp-10-40-5-180 ~]$ wc ~/.jboss-cli-history 
      0 0 0 /home/pkremens/.jboss-cli-history
      

              olubyans@redhat.com Alexey Loubyansky
              olubyans@redhat.com Alexey Loubyansky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: