[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: i dont see my code error there ...
From: |
Alex fxmbsw7 Ratchev |
Subject: |
Re: i dont see my code error there ... |
Date: |
Thu, 31 Mar 2022 21:03:57 +0200 |
t() { TIMEFORMAT=%Rs time { &>/dev/null eval "$@" ; } ; declare -pf t
t ()
{
TIMEFORMAT=%Rs time { eval "$@" &> /dev/null
}
declare -fx t
t() { TIMEFORMAT=%Rs time { &>/dev/null eval "$@" } ; } ; declare -pf t
t ()
{
TIMEFORMAT=%Rs time { eval "$@" } &> /dev/null
}
declare -fx t
i donnt understannd why the original is wrong
or what is more true about missing }
On Thu, Mar 31, 2022 at 8:28 PM Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com>
wrote:
> 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
>>
>