Re: /bin/sh command history in NetBSD/i386

2017-02-01 Thread Marco Beishuizen
On Wed, 1 Feb 2017, the wise Robert Elz wrote: /etc/profile and .profile are read only in login shells. By default an xterm won't start its shell that way - you need the -ls option to the xterm, or have "xterm*loginShell: true" in your X resources. ... How are you actually

Re: /bin/sh command history in NetBSD/i386

2017-02-01 Thread Robert Elz
Date:Wed, 1 Feb 2017 19:55:54 +0100 (CET) From:Marco Beishuizen Message-ID: | "set -o emacs" is in my .shrc, so I thought this would do the trick. Can you confirm that if you actually type that in the

Re: /bin/sh command history in NetBSD/i386

2017-02-01 Thread Marco Beishuizen
On Wed, 1 Feb 2017, the wise Christos Zoulas wrote: That's good, it is the standard ansi sequence for right arrow. In shell type: $ set -o emacs $ xbind Do you see the arrow key bindings? It seems that the users .shrc and .profile are not being read at login because after entering "set -o

Re: /bin/sh command history in NetBSD/i386

2017-02-01 Thread Marco Beishuizen
On Wed, 1 Feb 2017, the wise Robert Elz wrote: As long as that was from the right arrow key, that's fine (up arrow, the most relevant for getting started with cmd line editing should have A instead of C) Yes indeed it was the right arrow key :). I got your off-list message, not terribly

Re: /bin/sh command history in NetBSD/i386

2017-02-01 Thread Robert Elz
Date:Wed, 1 Feb 2017 18:01:59 +0100 (CET) From:Marco Beishuizen Message-ID: | This gives: | ^[[C As long as that was from the right arrow key, that's fine (up arrow, the most relevant for getting

Re: /bin/sh command history in NetBSD/i386

2017-02-01 Thread Christos Zoulas
On Feb 1, 6:01pm, mb...@xs4all.nl (Marco Beishuizen) wrote: -- Subject: Re: /bin/sh command history in NetBSD/i386 | On Wed, 1 Feb 2017, the wise Christos Zoulas wrote: | | > See what the arrow key prints: | > | > $ hexdump -C | > | > ^D | | This gives: | ^[[C That's good, it

Re: /bin/sh command history in NetBSD/i386

2017-02-01 Thread Marco Beishuizen
On Wed, 1 Feb 2017, the wise Christos Zoulas wrote: See what the arrow key prints: $ hexdump -C ^D This gives: ^[[C -- You're already carrying the sphere!

Re: /bin/sh command history in NetBSD/i386

2017-02-01 Thread Christos Zoulas
In article , Marco Beishuizen wrote: >-=-=-=-=-=- > >On Wed, 1 Feb 2017, the wise Cág wrote: > >> It is strange because it works here and is what the man page recommends. >> Did you log out of all sessions? > >Yes, did log out all

Re: /bin/sh command history in NetBSD/i386

2017-02-01 Thread Marco Beishuizen
On Wed, 1 Feb 2017, the wise Cág wrote: It is strange because it works here and is what the man page recommends. Did you log out of all sessions? Yes, did log out all sessions. Even after a reboot no change. -- Yes, we will be going to OSI, Mars and, Pluto, but not necessarily in that order.

Re: /bin/sh command history in NetBSD/i386

2017-02-01 Thread Marco Beishuizen
On Wed, 1 Feb 2017, the wise Stephen Borrill wrote: What's your terminal type? echo $TERM Both root and user are xterm. -- If your sexual fantasies were truly of interest to others, they would no longer be fantasies. -- Fran Lebowitz

Re: /bin/sh command history in NetBSD/i386

2017-02-01 Thread Stephen Borrill
On Wed, 1 Feb 2017, Marco Beishuizen wrote: On Tue, 31 Jan 2017, the wise C??g wrote: Try "set -o vi" or "set -o emacs" and "export ENV="$HOME/.shrc" in .profile. Unfortunately these didn't make any difference. What's your terminal type? echo $TERM -- Stephen

Re: /bin/sh command history in NetBSD/i386

2017-02-01 Thread Cág
Marco Beishuizen wrote: > Unfortunately these didn't make any difference. It is strange because it works here and is what the man page recommends. Did you log out of all sessions? Cág

Re: /bin/sh command history in NetBSD/i386

2017-02-01 Thread Marco Beishuizen
On Tue, 31 Jan 2017, the wise Cág wrote: Try "set -o vi" or "set -o emacs" and "export ENV="$HOME/.shrc" in .profile. Unfortunately these didn't make any difference. Regards, Marco -- Real Users find the one combination of bizarre input values that shuts down the system for days.

Re: /bin/sh command history in NetBSD/i386

2017-01-31 Thread Cág
Marco Beishuizen wrote: > Does anyone have an idea how to get the same > behaviour of /bin/sh for the users as root has? Hi, Try "set -o vi" or "set -o emacs" and "export ENV="$HOME/.shrc" in .profile. man 1 sh has some info in the Argument List Processing and the Command Line Editing

Re: /bin/sh command history in NetBSD/i386

2017-01-31 Thread Christos Zoulas
In article , Marco Beishuizen wrote: >Hi, > >I recently installed NetBSD 7.0.2 on an old laptop (i386). Both root and >the user have /bin/sh as the (default) shell, but only root has a command >history, using the arrow keys. I've

/bin/sh command history in NetBSD/i386

2017-01-31 Thread Marco Beishuizen
Hi, I recently installed NetBSD 7.0.2 on an old laptop (i386). Both root and the user have /bin/sh as the (default) shell, but only root has a command history, using the arrow keys. I've also installed NetBSD on a DEC/Alpha but there is no problem and history works out of the box for the