Subject: Re: bug#7821: Escaping doesn't work in yes

From: Eric Blake <[email-masked]>
Date: Mon, 10 Jan 2011 17:29:07 -0700

On 01/10/2011 04:36 PM, Olaf Bossen wrote:
> 
> Hello there,
> 
> I have tried to output a string starting with '-' using the yes program.

Thanks for the report; however, this is not a bug in yes.

> "The only options are a lone `--help' or `--version'.  To output an
> argument that begins with `-', precede it with `--', e.g., `yes --
> --help'."

Notice how "--" and "--help" are separate arguments in that paragraph.

> $ yes '----help'

But here, you passed a single argument instead of two arguments.

Use "yes -- -" for your desired usage.

-- 
Eric Blake   [email-masked]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org