[Buildroot] [PATCH v2 2/2] coreutils: optimize the '[' symlink
Carlos Santos
casantos at datacom.com.br
Wed Jul 11 22:06:13 UTC 2018
> From: "Arnout Vandecappelle" <arnout at mind.be>
> To: "Baruch Siach" <baruch at tkos.co.il>, "buildroot" <buildroot at busybox.net>
> Cc: "DATACOM" <casantos at datacom.com.br>
> Sent: Wednesday, July 11, 2018 6:49:43 PM
> Subject: Re: [PATCH v2 2/2] coreutils: optimize the '[' symlink
> On 11-07-18 21:51, Baruch Siach wrote:
>> Link '[' directly to the coreutils binary instead of going through
>> 'test'.
>
> One more small question: did you do a runtime test to be sure that this
> actually works? (That said, if this doesn't work, then the previous one also
> can't have worked.)
Yes, but it must be invoked directly since '[' is a shell built-in
command:
# type [
[ is a shell builtin
# /usr/bin/[ -d / ] && echo ok
ok
--
Carlos Santos (Casantos) - DATACOM, P&D
“Marched towards the enemy, spear upright, armed with the certainty
that only the ignorant can have.” — Epitaph of a volunteer
More information about the buildroot
mailing list