GNU bug report logs - #18827
[Feature request] no CR for yes

Previous Next

Package: coreutils;

Reported by: George Shuklin <george.shuklin <at> gmail.com>

Date: Sat, 25 Oct 2014 14:54:01 UTC

Severity: wishlist

Tags: wontfix

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 18827 <at> debbugs.gnu.org (full text, mbox):

From: Bob Proulx <bob <at> proulx.com>
To: George Shuklin <george.shuklin <at> gmail.com>
Cc: 18827 <at> debbugs.gnu.org
Subject: Re: bug#18827: [Feature request] no CR for yes
Date: Mon, 27 Oct 2014 23:34:20 -0600
George Shuklin wrote:
> Yes is very nice to generate large repeating patterns, but it always adds
> \n at the end. It's OK for the string data but sometimes mess with binary.
> 
> Any way to disable it will be really appreciated. F.e. -n key (like for
> 'echo'), or any other.

The 'yes' command is really just a  convenience.  If you want special
things such as no newline then use printf.  It is standard and a good
tool for custom formatted strings.

  while true; do printf foo; done

Bob




This bug report was last modified 10 years and 263 days ago.

Previous Next


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