[ Home | Liste | F.A.Q. | Risorse | Cerca... ]


[ Data: precedente | successivo | indice ] [ Argomento: precedente | successivo | indice ]


Archivio: Luglio 2004 ml@sikurezza.org
Soggetto: Re: [ml] bash_history vuoto
Mittente: Igor Falcomata'
Data: Tue, 13 Jul 2004 10:59:15 +0200 (CEST)
Fine del thread, che e' diventato oltremodo noioso ed inutile.

thnx
Koba (moderatore)

----- Forwarded message from Emiliano 'AlberT' Gabrielli <AlberT<at>SuperAlberT.it> -----
From: "Emiliano 'AlberT' Gabrielli" <AlberT<at>SuperAlberT.it>
Subject: Re: [ml] bash_history vuoto
Date: Tue, 13 Jul 2004 10:43:24 +0200

On 10:12, martedì 13 luglio 2004, Claudio wrote:
> >> HISTSIZE=4000 HISTFILESIZE=4000
> >
> > Sei sicuro che il file venga svuotato una volta raggiunto il limite? Per
> > quel poco che ne so io il file mantiene quel limite costante, ovvero
> > aggiunge i comandi alla fine e li elimina all'inizio  di HISTFILE
> > qualsiasi valore tu abbia in HISTSIZE e HISTFILESIZE.
>
> Credo dipenda dalla configurazione usata. I comandi possono essere
> "appesi" o il file può essere sovrascritto. Nella sezione "HISTORY" della
> man page di bash trovo:
>
> "On startup, the history is initialized from the file named by the vari-
> able  HISTFILE  (default ~/.bash_history).  The file named by the value
> of HISTFILE is truncated, if necessary, to contain  no  more  than  the
> number of lines specified by the value of HISTFILESIZE.  When an inter-
> active shell exits, the last $HISTSIZE lines are copied from  the  his-
> tory list to $HISTFILE.  If the histappend shell option is enabled (see
> the description of shopt under SHELL BUILTIN COMMANDS below), the lines
> are  appended  to the history file, otherwise the history file is over-
> written."
>
> Ergo, pare che "the histappend shell option" decida la sorte del file in
> questione...

rimane il fatto che è HISTFILESIZE a covernare la dimensione del file, non 
HISTSIZE che dice solo quale è il numero massimo di comandi che a fine 
sessione viene copiato nel file.

-- 
<?php echo '       Emiliano `AlberT` Gabrielli       '."\n".
           '  E-Mail: AlberT_AT_SuperAlberT_it  '."\n".
           '  Web:    http://SuperAlberT.it  '."\n".
'  IRC:    #php,#AES azzurra.com '."\n".'ICQ: 158591185'; ?>

----- End forwarded message -----




[ Home | Liste | F.A.Q. | Risorse | Cerca... ]

www.sikurezza.org - Italian Security Mailing List
(c) 1999-2005