Re: ksh93 and its history are in wrong order
RVP <[email protected]> Sun, 10 May 2026 09:58:35 +0000 (UTC)
| Newsgroups | gmane.os.netbsd.current |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 9 May 2026, [email protected] wrote: > 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 > [...] > 9 ! -3 > PR pkg/60245 > Also, I can't repeat a command by doing for example r 29. > It will just list my history again. > From the ksh93 man-page: The following aliases are automatically preset when the shell is invoked as an interactive shell. Preset aliases can be unset or redefined. history=′hist -l′ r=′hist -s′ The `r' alias is defined differently in the system /bin/ksh. Again from the ksh(1) man-page: The following command aliases are defined automatically by the shell: [...] r='fc -e -' -RVP