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 address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc Description: OpenPGP digital signature