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

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 arrows to access

Re: SSH, root can repeat commands with up arrow, others cannot

2012-03-12 Thread Stuart Henderson
On 2012-03-11, Tobias Ulmer tobi...@tmux.org wrote: On Sun, Mar 11, 2012 at 02:43:42PM -0500, Chris Bennett wrote: 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 arrows to

Re: SSH, root can repeat commands with up arrow, others cannot

2012-03-12 Thread Stuart Henderson
On 2012-03-11, Chris Bennett ch...@bennettconstruction.us wrote: On Sun, Mar 11, 2012 at 09:02:58PM +0100, Tobias Ulmer wrote: You most likely set EDITOR to something containing vi. ksh parses that and switches to vi mode. IMO it's a disgusting feature, but that appears to be just me.

Re: SSH, root can repeat commands with up arrow, others cannot

2012-03-12 Thread Stuart Henderson
to be clear, this doesn't change anything unless the optional new variable is set. users who are happy with the current behaviour should just leave things as they are. On 2012-03-12, Stuart Henderson s...@spacehopper.org wrote: On 2012-03-11, Tobias Ulmer tobi...@tmux.org wrote: On Sun, Mar 11,

Re: SSH, root can repeat commands with up arrow, others cannot

2012-03-12 Thread lilit-aibolit
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 arrows to access history. History command shows correct history. Login remotely as

Re: SSH, root can repeat commands with up arrow, others cannot

2012-03-12 Thread Chris Bennett
On Mon, Mar 12, 2012 at 10:09:13AM +, Stuart Henderson wrote: I've wasted countless time because of this feature, it's probably my no.1 annoyance with the OS. It used to be possible to set this in a file sourced via ENV so it could be applied automatically, but sudo now (rightly)

SSH, root can repeat commands with up arrow, others cannot

2012-03-11 Thread Chris Bennett
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 arrows to access history. History command shows correct history. Login remotely as otheruser. Same problem. Chris Bennett

Re: SSH, root can repeat commands with up arrow, others cannot

2012-03-11 Thread Alexander Hall
On 03/11/12 20:43, Chris Bennett wrote: 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 arrows to access history. History command shows correct history. Login remotely as

Re: SSH, root can repeat commands with up arrow, others cannot

2012-03-11 Thread patrick keshishian
On Sun, Mar 11, 2012 at 12:43 PM, Chris Bennett ch...@bennettconstruction.us wrote: 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 arrows to access history. History command

Re: SSH, root can repeat commands with up arrow, others cannot

2012-03-11 Thread Tobias Ulmer
On Sun, Mar 11, 2012 at 02:43:42PM -0500, Chris Bennett wrote: 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 arrows to access history. History command shows correct

Re: SSH, root can repeat commands with up arrow, others cannot

2012-03-11 Thread Andres Perera
On Sun, Mar 11, 2012 at 3:32 PM, Tobias Ulmer tobi...@tmux.org wrote: On Sun, Mar 11, 2012 at 02:43:42PM -0500, Chris Bennett wrote: 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

Re: SSH, root can repeat commands with up arrow, others cannot

2012-03-11 Thread Chris Bennett
On Sun, Mar 11, 2012 at 09:02:58PM +0100, Tobias Ulmer wrote: You most likely set EDITOR to something containing vi. ksh parses that and switches to vi mode. IMO it's a disgusting feature, but that appears to be just me. Wow, that is a disgusting pile of crap! alias mutt='env EDITOR=vim