Hi,
Claus Assmann wrote [2012-03-14 03:05+0100]:
> Maybe try something like this?
>
> HISTFILE=${HOME%/}/.ksh_hist.$$
for what's it worth, i do use the following in my multi-shell
(ksh(1), bash(1), FreeBSD sh(1)) .shrc:
export TTY=$(/usr/bin/tty | /usr/bin/sed -e 's/.\{1,\}\/\(.\{1,\}\)$/\1/')
export HISTFILESIZE=4221
if [ "${SHELL}" != "${SHELL%%bash}" ]; then
export HISTCONTROL=ignoreboth
export HISTFILE="$HOME/traffic/.bash_hist_$TTY"
shopt -s expand_aliases
elif [ "${SHELL}" != "${SHELL%%ksh}" ]; then
export HISTFILE="$HOME/traffic/.ksh_hist_$TTY"
set -o emacs
set +o emacs-usemeta
fi
(OpenBSD sed(1) supports -E now, so those old regexes have been
definitely outdated in the meanwhile.)
And for ksh(1) i'm finally about to try out that textfile-based
history patch that Marco Peereboom has posted to tech@B on
2011-09-01. 'Am currently fixing mysterious whitespace after
i had to apply the patch with -l. So much whitespace. Puuh.
That was tested extensively by a lot of people that hang around
the lists, Amit, LEVAI Daniel, and more. (And works for me sofar.)
Aaeeh - easier to grep/sed/cat whatever on a text-based file, hah??
What a pity that this is unused!
ACH! Not to talk about my own (alloc) patch. (sob.)
Is it monday lately? (sob.) Oh, wednesday. Well, then..
--steffen
Forza figa!