bug-bash
[Top][All Lists]
Advanced

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

How get last commnda history line number directly


From: almahdi
Subject: How get last commnda history line number directly
Date: Tue, 1 Sep 2020 02:14:33 -0700 (MST)

How to get last commnda history line number purely & directly on bash script
or prompt ?

as it's pure & directly viable in PS1 env. var.
PS1=`echo \!`

confusingly bash 'mainstream' itself wasn't found way to do




--
Sent from: http://gnu-bash.2382.n7.nabble.com/



reply via email to

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