bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH]-v2 command: time


From: Greg Wooledge
Subject: Re: [PATCH]-v2 command: time
Date: Tue, 23 Sep 2025 11:52:56 -0400
User-agent: Mutt/1.10.1 (2018-07-13)

On Tue, Sep 23, 2025 at 17:05:11 +0200, pourko2--- via Bug reports for the GNU 
Bourne Again SHell wrote:
> Of course, I can see how this can be used for playing some practical jokes,
> even on yourself. I would much rather if there is an easy way to make time
> take a -n N option instead.

That's more acceptable than a new special variable, in my opinion.  However,
I don't think either one is really needed.  You can already do

    time for ((i=1; i<=100; i++)); do my command here; done

or write a repeat (with eval) function, and do something like

    time repeat -e 100 'my command here'

New shell features aren't needed for this.



reply via email to

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