From 361ecea070df4767d088df967e4a9fe6678bc186 Mon Sep 17 00:00:00 2001 From: Fons Rademakers <Fons.Rademakers@cern.ch> Date: Tue, 27 Jun 2000 16:42:22 +0000 Subject: [PATCH] in .rootrc one can now turn-off command recording git-svn-id: http://root.cern.ch/svn/root/trunk@291 27541ba8-7e3a-0410-8455-c3a389f83636 --- clib/src/Getline.c | 4 +++- config/rootrc.in | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/clib/src/Getline.c b/clib/src/Getline.c index 0e99c293df4..1f2d3b9ed3e 100644 --- a/clib/src/Getline.c +++ b/clib/src/Getline.c @@ -1,4 +1,4 @@ -/* @(#)root/clib:$Name: $:$Id: Getline.c,v 1.2 2000/05/31 18:41:37 rdm Exp $ */ +/* @(#)root/clib:$Name: $:$Id: Getline.c,v 1.3 2000/06/16 15:23:01 rdm Exp $ */ /* Author: */ /* @@ -1311,6 +1311,8 @@ Gl_histinit(char *file) gl_savehist = 0; hist_init(); + + if (!strcmp(file, "-")) return; sprintf(gl_histfile, "%s", file); diff --git a/config/rootrc.in b/config/rootrc.in index 83afa94df8c..8dc0a46cfe5 100644 --- a/config/rootrc.in +++ b/config/rootrc.in @@ -88,6 +88,7 @@ Browser.SortBy: name Rint.Load: rootalias.C Rint.Logon: rootlogon.C Rint.Logoff: rootlogoff.C +# Record session commands, set to "-" to turn off command recording Rint.History: $(HOME)/.root_hist # Example of custom setting for the Rint application (root.exe). -- GitLab