bug-bash
[Top][All Lists]
Advanced

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

Re: TIMEFORMAT in time ( )


From: lolilolicon
Subject: Re: TIMEFORMAT in time ( )
Date: Mon, 17 Oct 2016 14:27:04 +0800

On Mon, Oct 17, 2016 at 6:01 AM, isabella parakiss <izaberina@gmail.com> wrote:
>
> f() { TIMEFORMAT=f; time :; }
> time ( f )
> f
> f
>
> setting TIMEFORMAT in ( ) affects time out of the subshell
> this cannot be right

time is a reserved word, not a builtin. time is not "out of the
subshell". Its env is that of the subshell, I think.



reply via email to

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