GNU bug report logs - #7821
Escaping doesn't work in yes

Previous Next

Package: coreutils;

Reported by: Olaf Bossen <obossen <at> physik.uzh.ch>

Date: Tue, 11 Jan 2011 00:11:01 UTC

Severity: normal

Tags: notabug

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eric Blake <eblake <at> redhat.com>
To: Olaf Bossen <obossen <at> physik.uzh.ch>
Cc: 7821 <at> debbugs.gnu.org
Subject: bug#7821: Escaping doesn't work in yes
Date: Mon, 10 Jan 2011 17:29:07 -0700
[Message part 1 (text/plain, inline)]
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   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 14 years and 52 days ago.

Previous Next


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