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


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Olaf Bossen <obossen <at> physik.uzh.ch>
To: bug-coreutils <at> gnu.org
Subject: Escaping doesn't work in yes
Date: Tue, 11 Jan 2011 00:36:23 +0100
Hello there,

I have tried to output a string starting with '-' using the yes program.
The info page states:

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

So I tried that and it doesn't work.

Cheers,
Olaf Bossen

$ yes '----help'
yes: invalid option -- '-'
Try `yes --help' for more information.

$ yes --version 
yes (GNU coreutils) 8.7
Packaged by Gentoo (8.7 (p1))
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David MacKenzie.


I am running Gentoo 64 bit. Some more options:

CFLAGS="-O2 -pipe"
CXXFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
declare -x LANG="C"
declare -x LANGUAGE=""

glibc version:
glibc-2.11.2-r3





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.