Re: ksh's HISTFILE

2012-03-14 Thread richo
On 14/03/12 07:40 +0100, Paul de Weerd wrote: >On Wed, Mar 14, 2012 at 02:13:22AM -0400, Hugo Villeneuve wrote: >| Usually, the history file is used to seed the current shell process >| in-memory history and when the shell quits, it's overwriten. > >Yeah, and the part I hate about that behaviour is

Re: ksh's HISTFILE

2012-03-14 Thread Steffen Daode Nurpmeso
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/'

Re: ksh's HISTFILE

2012-03-14 Thread Andres Perera
that makes it awkward to use across sessions (defeating the point of the file) even though it does not appear to have options regarding this, bash does have a crap ton of settings regarding history handling whatever the route, i would prefer if ksh didn't have new flags added to it, but instead s

Re: ksh's HISTFILE [was: Re: SSH, root can repeat commands with up arrow, others cannot]

2012-03-14 Thread Nicholas Marriott
I dunno, I hadn't really noticed this behaviour but now that you point it out I kind of like it, apologist or not. It frequently annoys me with bash that I lose $LONGCOMMAND I typed in one shell because I exited it, it's nice to be able to search for and find it in existing shells as well. Maybe h

Re: ksh's HISTFILE

2012-03-13 Thread Paul de Weerd
On Wed, Mar 14, 2012 at 02:13:22AM -0400, Hugo Villeneuve wrote: | Usually, the history file is used to seed the current shell process | in-memory history and when the shell quits, it's overwriten. Yeah, and the part I hate about that behaviour is that with two concurrent sessions it means you onl

Re: ksh's HISTFILE

2012-03-13 Thread Hugo Villeneuve
On Tue, Mar 13, 2012 at 07:05:22PM -0700, Claus Assmann wrote: > On Tue, Mar 13, 2012, Hugo Villeneuve wrote: > > On Mon, Mar 12, 2012 at 01:03:54PM +0200, lilit-aibolit wrote: > > > > export HISTFILE=~/.sh_history > > > Because last time I tried, it was unusable if you ran more than two > > sess

Re: ksh's HISTFILE

2012-03-13 Thread Claus Assmann
On Tue, Mar 13, 2012, Hugo Villeneuve wrote: > On Mon, Mar 12, 2012 at 01:03:54PM +0200, lilit-aibolit wrote: > > export HISTFILE=~/.sh_history > Because last time I tried, it was unusable if you ran more than two > session concurently, as both shell would use the same file directly Maybe try so

ksh's HISTFILE [was: Re: SSH, root can repeat commands with up arrow, others cannot]

2012-03-13 Thread Hugo Villeneuve
On Mon, Mar 12, 2012 at 01:03:54PM +0200, lilit-aibolit wrote: > 11.03.2012 21:43, Chris Bennett P?P8QP5Q: > >This started for me a while back. > >Login as root, I can repeat older commands with up down arrows. > >History command shows history. > > > >su -l otheruser > > > >Cannot use up down arr