GNU bug report logs - #69636
Re: [PATCH] Improve quality of format-checking code for seq.

Previous Next

Package: coreutils;

Reported by: 877i7vyf3l.fsf <at> penguin.cs.ucla.edu

Date: Fri, 8 Mar 2024 12:31:02 UTC

Severity: normal

Tags: notabug, patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Pádraig Brady <P <at> draigBrady.com>, 877i7vyf3l.fsf <at> penguin.cs.ucla.edu
Cc: 69636 <at> debbugs.gnu.org
Subject: bug#69636: Re: [PATCH] Improve quality of format-checking code for seq.
Date: Fri, 8 Mar 2024 11:14:00 -0800
On 2024-03-08 05:47, Pádraig Brady wrote:

>    seq $a | xargs printf -- 'x%.0s'
> 
>    printf "%${a}s" '' | tr ' ' x
> 
>    yes x | head -n$a | tr -d '\n'

Oh, I like those! Unfortunately the printf solution silently fails for 
me when a=10000000000 due to a bug in Bash. Perhaps I'll get up the 
energy to propose a fix (at least it should *noisily* fail :-).




This bug report was last modified 99 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.