bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How get last commnda history line number directly


From: L A Walsh
Subject: Re: How get last commnda history line number directly
Date: Thu, 10 Sep 2020 15:53:51 -0700
User-agent: Thunderbird

On 2020/09/09 11:32, Greg Wooledge wrote:
No. I said PS1='\! ' and that's what I meant. Not some other random
variable.

unicorn:~$ PS1='\! '
502 echo hi
hi
503
===
Thanks for clarifying. That does work for me.  I still had
it stuck in my head as having to do with general variable
usage as you mentioned in one of your earlier responses.

Moderately amusing short story -- when first encountering
question of how to get number of last command, I wrote
a shell script to do it -- way too much work for much
too little benefit.

Never let it be said that I still can't overwhelm
myself with trees in looking for a forest -- though
maybe not for long if one is living on the west coast --
there will be quite a few less of them (trees and forests)
to get in the way unless we get some early winter rains.

Can't believe how yellow the sky has been the past few days
due to the smoke.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]