bug-bash
[Top][All Lists]
Advanced

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

Re: ${!#} doesnt get into history in interactive


From: Chet Ramey
Subject: Re: ${!#} doesnt get into history in interactive
Date: Thu, 25 Aug 2022 10:27:07 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.1.2

On 8/25/22 2:04 AM, Alex fxmbsw7 Ratchev wrote:


is this a bug, i see it as wrong feature

the set -- 1 2 3 line was also gone - why ?

it printed for !# 3 it didnt histexpand-act

I can't reproduce this.

$ echo $BASH_VERSION
5.2.0(1)-rc3
$ history -c
$ echo 1
1
$ echo 2
2
$ echo 3
3
$ echo ${!#}
./bash
$ history
    1  echo 1
    2  echo 2
    3  echo 3
    4  echo ${!#}
    5  history


--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

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