[Toybox] [PATCH] ln: add -T, use FLAG()

Ryan Prichard rprichard at google.com
Wed Sep 25 13:39:54 PDT 2019


It looks like coreutils and busybox allow only 2 args with -T. Do we need
to diagnose this?

touch A B
ln -sfT A B L
ln: extra operand 'L'

busybox ln -sfT A B L
ln: -T accepts 2 args max

toybox ln -sfT A B L
ls -l L
lrwxrwxrwx 1 rprichard primarygroup 1 Sep 25 13:38 L -> B

With this patch, ln is overwriting the symlink twice, leaving it pointing
at B.

-Ryan


On Wed, Sep 25, 2019 at 1:21 PM Jarno Mäkipää <jmakip87 at gmail.com> wrote:

> Added: -T
> Replaced: & flag_# with FLAG(#)
>
> There was feature request on github. Apparently there is some android
> scripts with ln -sfT
>
>
> -Jarno
> _______________________________________________
> Toybox mailing list
> Toybox at lists.landley.net
> http://lists.landley.net/listinfo.cgi/toybox-landley.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190925/35c89dbd/attachment-0001.htm>


More information about the Toybox mailing list