bash - history - 2nd

jaca jherold at interia.pl
Fri Nov 5 03:04:11 PST 2004


Hello Matthias,

Tuesday, November 2, 2004, 3:09:07 PM, you wrote:

MB> On Mon, 1 Nov 2004 20:15:22 +0100 jaca <jherold at interia.pl> wrote:

>> The other problem is that the history file was not updated while
>> logout. I solved it by adding the .bash_logout file and the line:
>> 
>> "history > .bash_history" in this file.
>> 
>> Tell me please if this way if correct or no.

MB> It's definitely not the correct way to do it. The history is supposed be
MB> saved automatically. When you say it's not updated "while logout", what
MB> exactly do you mean? What is "logout" in your case? Do you mean typing
MB> "exit" at the Linux text console prompt or is do you mean exiting from
MB> chroot?

MB> I can't reproduce them problem. No matter what I try my history is
MB> properly saved.

MB> Please post the output of `shopt'

MB> MSB

MB> -- 
MB> The early bird gets the worm, but the second mouse gets the cheese.

Thank You for advice.

I found in my shopt listing

root ~ # shopt
cdable_vars     off
cdspell         off
checkhash       off
checkwinsize    off
cmdhist         on
dotglob         off
execfail        off
expand_aliases  on
extdebug        off
extglob         off
extquote        on
failglob        off
force_fignore   on
gnu_errfmt      off
histreedit      off
histappend      off
histverify      off
hostcomplete    on
huponexit       off
interactive_comments    on
lithist         off
login_shell     on
mailwarn        off
no_empty_cmd_completion off
nocaseglob      off
nullglob        off
progcomp        on
promptvars      on
restricted_shell        off
shift_verbose   off
sourcepath      on
xpg_echo        off
root ~ #

that hist append os off - i guess it's a reason but how to turn it on?


-- 
Best regards,
 jaca                            mailto:jherold at interia.pl


----------------------------------------------------------------------
Startuj z INTERIA.PL!!! >>> http://link.interia.pl/f1837




More information about the lfs-support mailing list