[linux-l] C/Perl: readline history ohne doppelte eintraege

Sven Guckes maillist-belug at guckes.net
So Mai 22 21:45:32 CEST 2005


* JSC <belug at jsc.no-ip.org> [2005-05-22 20:02]:
> wie programmiert man (portabel), dass man nur neue eintrage in die
> readline history dazufuegt. in der bash konnte man das einstellen
> (glaube ich), jedoch finde ich den part in der manpage nicht mehr :-(

  $ man bash
  /append.*history

  SHELL BUILTIN COMMANDS
  ...
  history [n]
  ...
! -a     Append the ``new'' history lines (history lines entered since the
         beginning of the current bash session) to the history file.

  bash> history -a [~/.bash_history]

Sven

-- 
Sven Guckes     sig-linuxwochen @guckes.net
Linuxwochen Oesterreich  von Di 24.Mai 2005
Museumsquartier in Wien  bis Fr 27.Mai 2005 ---> 17Uhr im der Arena:
http://www.linuxwochen.at/cgi-bin/index?id=100000841 "Zsh Featurama"



Mehr Informationen über die Mailingliste linux-l