Bob Proulx
2013-Aug-08 04:55 UTC
[Pkg-xen-devel] Bug#718898: cut no longer works with newline as delimiter
Bob Proulx wrote:> Here is a patch that I believe should fix the problem. I will also > attach it so that there won't be any mailer problems with the > transport of it.And I broke it in the editing of it. Drat!> + bridge=$(brctl show | | awk 'NR==2{print$1}')Which is obviously incorrect. Here is a hopefully correct patch. With only one pipe in the pipeline. --- vif-bridge.orig 2013-08-07 20:01:57.240366430 -0600 +++ vif-bridge 2013-08-07 22:54:12.076993655 -0600 @@ -37,8 +37,7 @@ if [ -z "$bridge" ] then - bridge=$(brctl show | cut -d " -" -f 2 | cut -f 1) + bridge=$(brctl show | awk 'NR==2{print$1}') if [ -z "$bridge" ] then Bob -------------- next part -------------- A non-text attachment was scrubbed... Name: vif-bridge.patch Type: text/x-diff Size: 288 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20130807/d43032cf/attachment.patch> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20130807/d43032cf/attachment.sig>
Ian Campbell
2013-Aug-08 09:48 UTC
[Pkg-xen-devel] Bug#718898: Bug#718898: cut no longer works with newline as delimiter
On Wed, 2013-08-07 at 22:55 -0600, Bob Proulx wrote:> Bob Proulx wrote: > > Here is a patch that I believe should fix the problem. I will also > > attach it so that there won't be any mailer problems with the > > transport of it. > > And I broke it in the editing of it. Drat! > > > + bridge=$(brctl show | | awk 'NR==2{print$1}') > > Which is obviously incorrect. Here is a hopefully correct patch. > With only one pipe in the pipeline.Hi Bob, Any chance you could send this patch to the upstream xen-devel at lists.xen.org mailing list with a Signed-off-by line to indicate acceptance of the DCO http://wiki.xen.org/wiki/Submitting_Xen_Patches#Signing_off_a_patch. Thanks, Ian.> > --- vif-bridge.orig 2013-08-07 20:01:57.240366430 -0600 > +++ vif-bridge 2013-08-07 22:54:12.076993655 -0600 > @@ -37,8 +37,7 @@ > > if [ -z "$bridge" ] > then > - bridge=$(brctl show | cut -d " > -" -f 2 | cut -f 1) > + bridge=$(brctl show | awk 'NR==2{print$1}') > > if [ -z "$bridge" ] > then > > Bob > _______________________________________________ > Pkg-xen-devel mailing list > Pkg-xen-devel at lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-xen-devel
Bob Proulx
2013-Aug-08 20:00 UTC
[Pkg-xen-devel] Bug#718898: Bug#718898: cut no longer works with newline as delimiter
Ian Campbell wrote:> Hi Bob, > > Any chance you could send this patch to the upstream > xen-devel at lists.xen.org mailing list with a Signed-off-by line to > indicate acceptance of the DCO > http://wiki.xen.org/wiki/Submitting_Xen_Patches#Signing_off_a_patch.Sure. Happy to do it. I will get to it later today and CC the bug log with the status update. Bob
Bob Proulx
2013-Aug-09 07:27 UTC
[Pkg-xen-devel] Bug#718898: cut no longer works with newline as delimiter
Ian Campbell wrote:> Any chance you could send this patch to the upstream > xen-devel at lists.xen.org mailing list with a Signed-off-by line to > indicate acceptance of the DCODone. Sent to the mailing list. Bob
Reasonably Related Threads
- Bug#718898: Bug#718898: cut no longer works with newline as delimiter
- Bug#718898: cut no longer works with newline as delimiter
- Processed: Re: Bug#718898: cut no longer works with newline as delimiter
- Bug#718898: marked as done (coreutils: cut no longer works with newline as delimiter)
- wishlist: option to cause /bin/sh to be used instead of user's shell