[Pkg-xen-devel] Bug#718898: cut no longer works with newline as delimiter

Bob Proulx bob at proulx.com
Thu Aug 8 04:55:49 UTC 2013


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>


More information about the Pkg-xen-devel mailing list