PATCH: inotifyd.c: Implement a builtin 'echo' command

Flemming Madsen busybox at themadsens.dk
Mon Oct 3 09:08:51 UTC 2011


Yes it works .. At the cost of a fork+exec per outputted line!

On Sun, Oct 2, 2011 at 12:53 AM, Denys Vlasenko
<vda.linux at googlemail.com> wrote:
> On Monday 26 September 2011 20:55, Flemming Madsen wrote:
>> inotifyd.c: Implement a builtin 'echo' command for simply outputting
>> events on stdout.
>
> But this already works, right?
>
> $ ./busybox inotifyd echo .
> r .
> 0 .
> r . .config
> a . .config
> 0 . .config
> r . .config
> a . .config
> a . .config
> 0 . .config
> ...
> ...
> ...
>
> If someone wants fancier output, they can use fancier formatter than /bin/echo.
>
> --
> vda
>


More information about the busybox mailing list