* On 18.03.2006 Neil Bothwick wrote:

> On Sat, 18 Mar 2006 10:17:19 +0100, Tim Kruse wrote:
>
>>  Like you set all options in zsh ...
>>
>> setopt INC_APPEND_HISTORY  # incrementally append history to $HISTFILE
>
> Not that different from Bash then? :-)
>
> shopt -s histappend

 Do you mean the option itself or setting options? Setting
options is not so different in the most shells I think.

 If you mean the option itself then ...

,-----
| % man bash | col -b | grep -A 3 histappend
|     histappend
|         If  set,  the history list is appended to the file named
|         by the value of the HISTFILE  variable  when  the  shell
|         exits, rather than overwriting the file.
| %
| % man zshoptions | col -b | grep -A 5 APPEND_HISTORY
|     APPEND_HISTORY <D>
|         If this is set, zsh sessions will append their history  list  to
|         the  history file, rather than overwrite it. Thus, multiple par-
|         allel zsh sessions will all have their history  lists  added  to
|         the history file, in the order they are killed.
|
| ---
|     INC_APPEND_HISTORY
|         This options works like APPEND_HISTORY except that  new  history
|         lines  are added to the $HISTFILE incrementally (as soon as they
|         are entered), rather than waiting until  the  shell  is  killed.
|         The  file  is periodically trimmed to the number of lines speci-
|         fied by $SAVEHIST, but can exceed this value between  trimmings.
`-----

 You see the difference? :-P

 So long,
tkr

-- 
What you don't know can hurt you, only you won't know it.

Attachment: signature.asc
Description: PGP signature

Reply via email to