Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ksh93 and its history are in wrong order



Mostly a lurker but I have a question about ksh93.
I'm trying to use it in my NetBSD current VM.
I don't understand why the history file does the following
after growing above 9:

1       startx
10      r cvs
11      r -5
12      set
13      man ksh93
14      man -k ksh93
15      cat /usr/pkg/etc/ksh93/kshrc
16      fc -l 1
17      r 13
18      hist -l
19      hist -l 1
2       history 1
20      fc -l 1
21      fc -l 1 | sort | uniq
22      fc -l 1 | uniq
23      vi .kshrc
24      exit
25      hist 1
26      r 5
27      ksh93 -i
28      hist
29      man ksh93
3       cd /usr/pkgsrc
30      vi .kshrc
31      man 1 ksh
32      history
4       cvs -q update -AdP
5       hist
6       hist
7       cd
8       r 3
9       ! -3

Also, I can't repeat a command by doing for example r 29.
It will just list my history again.

I have the following in my .kshrc file:

export LANG="en_US.UTF-8"
HISTFILE=".ksh_history"
HISTSIZE=5000
export PAGER=moor
export PS1='${USER}@${HOSTNAME}:${PWD}> '

set -o vi

eval "$(zoxide init posix --hook prompt)"

I'm obviously not an expert but i wanted to try to use
ksh93 instead of bash.


Home | Main Index | Thread Index | Old Index