Re: [ksh] Show command number in shell prompt

Liste des GroupesRevenir à cu shell 
Sujet : Re: [ksh] Show command number in shell prompt
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.unix.shell
Date : 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.com
void Void(void) { Void(); } /* The recursive call of the void */

Date Sujet#  Auteur
24 Sep 24 * [ksh] Show command number in shell prompt12Janis Papanagnou
24 Sep 24 `* Re: [ksh] Show command number in shell prompt11Janis Papanagnou
24 Sep 24  +- Re: [ksh] Show command number in shell prompt1Janis Papanagnou
24 Sep 24  +* Re: [ksh] Show command number in shell prompt3Keith Thompson
25 Sep 24  i`* Re: [ksh] Show command number in shell prompt2Keith Thompson
25 Sep 24  i `- Re: [ksh] Show command number in shell prompt1Janis Papanagnou
24 Sep 24  `* Re: [ksh] Show command number in shell prompt6Lawrence D'Oliveiro
25 Sep 24   +* Re: [ksh] Show command number in shell prompt2Keith Thompson
25 Sep 24   i`- Re: [ksh] Show command number in shell prompt1Kaz Kylheku
25 Sep 24   `* Re: [ksh] Show command number in shell prompt3Janis Papanagnou
26 Sep 24    `* Re: [ksh] Show command number in shell prompt2Janis Papanagnou
26 Sep 24     `- Re: [ksh] Show command number in shell prompt1Christian Weisgerber

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal