Subject: Re: bug#18827: [Feature request] no CR for yes

From: Bob Proulx <[email-masked]>
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