[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: busybox: xargs not working with -I
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2018-03-21 17:37:04
Message-ID: CAK1hOcOMGXFN02Fpq045vFk0eJDYzv50vu55NAZAQ0bBtquwBA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Tue, Mar 20, 2018 at 6:53 PM, Simon Pong <SimonPong@melco-resorts.com>
wrote:

> First, thank you for bring us this excellent app. But I found a problem
> when I was trying to execute this command below:
>
>
>
> [stat -c "%U:%G" myfile.txt | xargs -I {} chown {} hisfile.txt]
>
>
>
> Run by root user, but it turns out the bracket {} is actually not
> replaced, it just literally runs [chown {} hisfile.txt]
>
>
>
> So, may I know is this a bug or something else? Can you help to trouble
> shoot? Thank you very much!
>
>
>
These things should be reported to mailing list, not privately.

I can't reproduce. It works correctly for me with 1.28.1
Which version is yours?

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 20, 2018 \
at 6:53 PM, Simon Pong <span dir="ltr">&lt;<a \
href="mailto:SimonPong@melco-resorts.com" \
target="_blank">SimonPong@melco-resorts.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">





<div lang="EN-US">

<div class="gmail-m_3282409272754268719WordSection1">First, thank you for bring us \
this excellent app. But I found a problem when I was trying to execute this command \
below: <p class="MsoNormal"><u></u>  <u></u></p>
<p class="MsoNormal">[stat -c &quot;%U:%G&quot; myfile.txt | xargs -I {} chown {} \
hisfile.txt]<u></u><u></u></p> <p class="MsoNormal"><u></u>  <u></u></p>
<p class="MsoNormal">Run by root user, but it turns out the bracket {} is actually \
not replaced, it just literally runs [chown {} hisfile.txt]<u></u><u></u></p> <p \
class="MsoNormal"><u></u>  <u></u></p> <p class="MsoNormal">So, may I know is this a \
bug or something else? Can you help to trouble shoot? Thank you very \
much!<u></u><u></u></p> <p \
class="MsoNormal"><br></p></div></div></blockquote></div><br></div><div \
class="gmail_extra">These things should be reported to mailing list, not \
privately.<br><br></div><div class="gmail_extra">I can&#39;t reproduce. It works \
correctly for me with 1.28.1<br></div><div class="gmail_extra">Which version is \
yours?<br></div></div>



_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic