[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7821: Escaping doesn't work in yes
From: |
Eric Blake |
Subject: |
bug#7821: Escaping doesn't work in yes |
Date: |
Mon, 10 Jan 2011 17:29:07 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7 |
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