From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKF4d-0007R0-5p for qemu-devel@nongnu.org; Wed, 29 Nov 2017 21:59:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKF4c-0001Gs-F8 for qemu-devel@nongnu.org; Wed, 29 Nov 2017 21:59:39 -0500 Date: Thu, 30 Nov 2017 10:59:26 +0800 From: Fam Zheng Message-ID: <20171130025926.GJ16237@lemon> References: <20171123020832.8165-1-mreitz@redhat.com> <20171123020832.8165-6-mreitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171123020832.8165-6-mreitz@redhat.com> Subject: Re: [Qemu-devel] [PATCH 05/17] iotests: Fix _img_info for backslashes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: qemu-block@nongnu.org, qemu-devel@nongnu.org, Kevin Wolf , John Snow On Thu, 11/23 03:08, Max Reitz wrote: > read without -r eats backslashes. > > Signed-off-by: Max Reitz > --- > tests/qemu-iotests/common.rc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc > index dbae7d74ba..6fa0495e10 100644 > --- a/tests/qemu-iotests/common.rc > +++ b/tests/qemu-iotests/common.rc > @@ -338,7 +338,7 @@ _img_info() > -e "s#$IMGFMT#IMGFMT#g" \ > -e "/^disk size:/ D" \ > -e "/actual-size/ D" | \ > - while IFS='' read line; do > + while IFS='' read -r line; do > if [[ $format_specific == 1 ]]; then > discard=0 > elif [[ $line == "Format specific information:" ]]; then > -- > 2.13.6 > Reviewed-by: Fam Zheng