Sujet : Re: [ksh] Show command number in shell prompt
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.unix.shellDate : 24. Sep 2024, 21:56:13
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vcv5gu$3atig$1@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 24.09.2024 19:40, hymie! wrote:
>
I'm still irritated; if I see in one shell session a value of 11059
(which is an indication that the numbers created by '!' don't wrap)
I'm astonished that the counting in a new window will start at 1000
(and not at 1 or at the maximum previous value).
I don't use this feature, and I don't have ksh, just bash and zsh.
Bash has separate options for
\! the history number of this command
\# the command number of this command
I don't know what your goal is, but maybe ksh has these two options, and you
want the other one?
In ksh I know only of '!', a single unquoted literal exclamation mark.
But never mind. - My goal was just to not constantly see in my shell
instances what appears to me to look like an inconsistency. - Another
(bash-)prompt posting inspired me to post. But I also know only few
folks use ksh nowadays, most use bash, so I didn't really expect any
"solution" (sort of). Functionally there's no apparent drawback, so I
can live with it. Thanks.
Janis