qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 05/17] iotests: Fix _img_info for backslashes


From: Fam Zheng
Subject: Re: [Qemu-devel] [PATCH 05/17] iotests: Fix _img_info for backslashes
Date: Thu, 30 Nov 2017 10:59:26 +0800
User-agent: Mutt/1.9.1 (2017-09-22)

On Thu, 11/23 03:08, Max Reitz wrote:
> read without -r eats backslashes.
> 
> Signed-off-by: Max Reitz <address@hidden>
> ---
>  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 <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]