void, [31 Mar 2022 20:26:38]
[In reply to alex xmb ratchev]
t() { TIMEFORMAT=%Rs time { &>/dev/null eval "$@" ; }
void, [31 Mar 2022 20:26:41]
why does this work
void, [31 Mar 2022 20:27:17]
[In reply to alex xmb ratchev]
t() { TIMEFORMAT=%Rs time { &>/dev/null eval "$@" } ; }
void, [31 Mar 2022 20:27:24]
remove a semicolon
alex xmb ratchev, [31 Mar 2022 20:27:36]
hmmm i gbotta mail the mailing list
On Thu, Mar 31, 2022 at 8:25 PM Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com>
wrote:
> <xmb> # t() { TIMEFORMAT=%Rs time { &>/dev/null eval "$@" ; } ; }
> <shbot> xmb: bash: syntax error near unexpected token `}'
>
> t to time commands, i wanted to test echo vs printf \\n
>