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

2022-08-25 Thread Alex fxmbsw7 Ratchev
On Thu, Aug 25, 2022, 16:27 Chet Ramey wrote: > 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. > :/ , thanks muc

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

2022-08-25 Thread Chet Ramey
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 ${

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

2022-08-24 Thread Alex fxmbsw7 Ratchev
On Wed, Aug 24, 2022, 21:15 Dennis Williamson wrote: > > > On Wed, Aug 24, 2022, 9:07 AM Alex fxmbsw7 Ratchev > wrote: > >> debian 5.2.0(1)-beta bash >> >> i did code lightly in interactive >> then i did >> >> set -- 1 2 3 >> echo ${!#} >> >> then arrow up >> .. both cmds were skipped , and on t

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

2022-08-24 Thread Dennis Williamson
On Wed, Aug 24, 2022, 9:07 AM Alex fxmbsw7 Ratchev wrote: > debian 5.2.0(1)-beta bash > > i did code lightly in interactive > then i did > > set -- 1 2 3 > echo ${!#} > > then arrow up > .. both cmds were skipped , and on the term was rather the old code , which > i previously wrote > > then i di