[ksh] Show command number in shell prompt

Liste des GroupesRevenir à cu shell 
Sujet : [ksh] Show command number in shell prompt
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.unix.shell
Date : 24. Sep 2024, 14:45:46
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vcuc9r$373il$1@dont-email.me>
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
Not long ago I added an '!' (exclamation mark) to my prompt to have
it get expanded to the command number [in Kornshell];  PS1='(!)$ '
The effect is that a new shell instance starts with the number 1000
which incidentally equals the HISTSIZE. - Any ideas what could have
gone wrong here?

Janis

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