You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2021/04/14 07:53:17 UTC

[karaf] branch main updated: [KARAF-7093] Use .karaf/karaf.history file name instead of .karaf/karaf41.history

This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/main by this push:
     new 190eec3  [KARAF-7093] Use .karaf/karaf.history file name instead of .karaf/karaf41.history
     new 4c5e49b  Merge pull request #1345 from jbonofre/KARAF-7093
190eec3 is described below

commit 190eec33a35f1af6140fe3a6ead454457d9a3330
Author: jbonofre <jb...@apache.org>
AuthorDate: Fri Apr 9 08:21:31 2021 +0200

    [KARAF-7093] Use .karaf/karaf.history file name instead of .karaf/karaf41.history
---
 .../java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shell/core/src/main/java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java b/shell/core/src/main/java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java
index 2561be1..b4af472 100644
--- a/shell/core/src/main/java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java
+++ b/shell/core/src/main/java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java
@@ -299,7 +299,7 @@ public class ConsoleSessionImpl implements Session {
      * @return the history file
      */
     protected Path getHistoryFile() {
-        String defaultHistoryPath = new File(System.getProperty("user.home"), ".karaf/karaf41.history").toString();
+        String defaultHistoryPath = new File(System.getProperty("user.home"), ".karaf/karaf.history").toString();
         return Paths.get(System.getProperty("karaf.history", defaultHistoryPath));
     }