Re: [patch] read.1p: Split format and argument of printf call

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

 



Hi Florian,

On 3/2/23 23:05, Florian Loth wrote:
> As printf expects the format and arguments as separate arguments, split
> the string accordingly. This is already fixed in the HTML version of the
> standard.
Patch applied.

Thanks,

Alex
> ---
>  man-pages-posix-2017/man1p/read.1p | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/man-pages-posix-2017/man1p/read.1p b/man-pages-posix-2017/man1p/read.1p
> index e09b896..d7e3a0a 100644
> --- a/man-pages-posix-2017/man1p/read.1p
> +++ b/man-pages-posix-2017/man1p/read.1p
> @@ -196,7 +196,7 @@ The following command:
>  
>  while read -r xx yy
>  do
> -    printf "%s %s\en$yy$xx"
> +    printf "%s %s\en" "$yy" "$xx"
>  done < \fIinput_file\fR
>  .fi
>  .P

-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux