Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16880

How get last commnda history line number directly

From almahdi <budikusasi@gmail.com>
Newsgroups gnu.bash.bug
Subject How get last commnda history line number directly
Date 2020-09-01 02:14 -0700
Message-ID <mailman.1946.1598951688.2469.bug-bash@gnu.org> (permalink)
References <1598951673480-0.post@n7.nabble.com>

Show all headers | View raw


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/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

How get last commnda history line number directly almahdi <budikusasi@gmail.com> - 2020-09-01 02:14 -0700

csiph-web