Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh: fatal error: out of memory



On Sep 12,  9:10am, Monty Scroggins wrote:
} 
} These are the two parameters that were in the .profile
} 
} HISTSIZE=18000; export HISTSIZE
} HISTFILE=~/.sh_history; export HISTFILE
} 
} The .sh_history file is 168560k and 7952 lines..
                                ^
			Really?  That would be 21700 bytes per line,
			average, which seems a bit unbelievable.

} but maybe zsh should handle this type of problem..

The question is, what is "this type".  I think it's more likely that the
problem is:

} each line starts with one or more <nul> characters followed
} by the command strings..

Zsh assumes that a history file consists only of the commands themselves;
even when `extended_history' is set, it inserts time stamps in `: ...;'
form so that they can be interpreted as commands. 

Any idea which shell created the .sh_history file in the first place?

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author