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

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From almahdi <budikusasi@gmail.com>
Newsgroups gnu.bash.bug
Subject How get last commnda history line number directly
Date Tue, 1 Sep 2020 02:14:33 -0700 (MST)
Lines 14
Approved bug-bash@gnu.org
Message-ID <mailman.1946.1598951688.2469.bug-bash@gnu.org> (permalink)
References <1598951673480-0.post@n7.nabble.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Trace usenet.stanford.edu 1598951688 5254 209.51.188.17 (1 Sep 2020 09:14:48 GMT)
X-Complaints-To action@cs.stanford.edu
To Bug-bash@gnu.org
Envelope-to Bug-bash@gnu.org
Received-SPF softfail client-ip=162.253.133.57; envelope-from=budikusasi@gmail.com; helo=n7.nabble.com
X-detected-operating-system by eggs.gnu.org: First seen = 2020/09/01 05:14:40
X-ACL-Warn Detected OS = Mac OS X [generic] [fuzzy]
X-Spam_score_int 20
X-Spam_score 2.0
X-Spam_bar ++
X-Spam_report (2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.665, SPOOFED_FREEMAIL=1.321 autolearn=no autolearn_force=no
X-Spam_action no action
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <1598951673480-0.post@n7.nabble.com>
Xref csiph.com gnu.bash.bug:16880

Show key headers only | 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