Sujet : Re: [ksh] Show command number in shell prompt
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.unix.shellDate : 25. Sep 2024, 00:35:33
Autres entêtes
Organisation : None to speak of
Message-ID : <875xqkpquy.fsf@nosuchdomain.example.com>
References : 1 2 3 4 5
User-Agent : Gnus/5.13 (Gnus v5.13)
Keith Thompson <Keith.S.Thompson+
u@gmail.com> writes:
[...]
If you use numbered history references, they refer to the history
number, not the command number. For example, !25 will execute the 25th
command from your history. This could be confusing if you show the
command number in $PS1.
And of course the "history" command shows history numbers, not command
numbers.
The command number doesn't seem to be used for anything other than
showing the number of commands issued in the current shell process.
(Personally, I don't find the command number to be useful information.)
-- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.comvoid Void(void) { Void(); } /* The recursive call of the void */