Re: How get last commnda history line number directly

2020-09-08 Thread Chet Ramey
On 9/6/20 4:18 PM, L A Walsh wrote: > history 3 > 2983  echo "this is on what history line? ($HISTCMD)" > 2984  echo $(($HISTCMD-2)) > 2985  history 3 > > Seems to only give correct line from history by subtracting 2? > Maybe its different in 5.x? When readline stores history entries, it stores

Re: How get last commnda history line number directly

2020-09-08 Thread Greg Wooledge
On Sun, Sep 06, 2020 at 01:18:22PM -0700, L A Walsh wrote: > > as it's pure & directly viable in PS1 env. var. > > PS1=`echo \!` > --- > Doesn't work if you don't have '!' support (I generally found > '!' more often did unwanted things, but I never used csh): You're talking abuot csh-style history

Re: About speed evaluation

2020-09-08 Thread Greg Wooledge
On Sun, Sep 06, 2020 at 12:06:26PM -0700, L A Walsh wrote: > On 2020/09/06 05:52, Oğuz wrote: > > 6 Eylül 2020 Pazar tarihinde almahdi yazdı: > > > > > How slower find -exec repetitively calling bash -c'' for invoking a > > > function > > > inside, compare to pipe repeated > > >How I re