Your message dated Thu, 07 Apr 2005 18:56:34 -0400
with message-id <[EMAIL PROTECTED]>
and subject line Bug#303650: /bin/echo: echo: needs to support -- flag
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 7 Apr 2005 21:14:22 +0000
>From [EMAIL PROTECTED] Thu Apr 07 14:14:22 2005
Return-path: <[EMAIL PROTECTED]>
Received: from smtpout19.mailhost.ntl.com (mta13-winn.mailhost.ntl.com)
[212.250.162.19]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DJeKU-0002FK-00; Thu, 07 Apr 2005 14:14:22 -0700
Received: from aamta02-winn.mailhost.ntl.com ([212.250.162.8])
by mta13-winn.mailhost.ntl.com with ESMTP
id <[EMAIL PROTECTED]>
for <[EMAIL PROTECTED]>; Thu, 7 Apr 2005 22:13:51 +0100
Received: from gpk.wftp.org ([62.254.145.79])
by aamta02-winn.mailhost.ntl.com with ESMTP
id <[EMAIL PROTECTED]>
for <[EMAIL PROTECTED]>; Thu, 7 Apr 2005 22:13:51 +0100
Received: from gpk by gpk.wftp.org with local (Exim 4.50)
id 1DJeJw-0002Rv-R5
for [EMAIL PROTECTED]; Thu, 07 Apr 2005 22:13:48 +0100
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Greg Kochanski <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: /bin/echo: echo: needs to support -- flag
X-Mailer: reportbug 3.8
Date: Thu, 07 Apr 2005 22:13:48 +0100
Message-Id: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
Package: coreutils
Version: 5.2.1-2
Severity: normal
File: /bin/echo
Echo does not support the '--' flag.
It should to, otherwise any script containing the line:
echo "$x"
is are prone to unexpected bugs,
if $x is unexpectedly set to
'-n', '-e', or '-E', '--help', or '--version'.
If echo recognized '--', then a script could
be written containing
echo -- "$x"
that would behave properly for all values of $x.
There is a potential security risk, too, but
it is a bit far fetched. It is possible that the ability
to remove an expected newline (by setting x='-n') could be used to
cause errors which someone might be able
to take advantage of.
The kind of place where problems are most likely to appear is
in places like this:
echo "$x" "$y" | program
And, in case you think you can kluge around it,
doing
echo '' "$x"
doesn't work. It immunizes you to unexpected values of x,
but it inserts a space at the beginning of the output.
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages coreutils depends on:
ii libacl1 2.2.23-1 Access control list shared library
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
-- no debconf information
---------------------------------------
Received: (at 303650-close) by bugs.debian.org; 7 Apr 2005 22:56:35 +0000
>From [EMAIL PROTECTED] Thu Apr 07 15:56:35 2005
Return-path: <[EMAIL PROTECTED]>
Received: from vms048pub.verizon.net [206.46.252.48]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DJfvP-0000t6-00; Thu, 07 Apr 2005 15:56:35 -0700
Received: from osgiliath.mathom.us ([70.108.42.242])
by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04
(built Dec 24 2004)) with ESMTPA id <[EMAIL PROTECTED]> for
[EMAIL PROTECTED]; Thu, 07 Apr 2005 17:56:34 -0500 (CDT)
Received: from localhost (localhost [127.0.0.1])
by osgiliath.mathom.us (Postfix) with ESMTP id 3786D62E5EA; Thu,
07 Apr 2005 18:56:34 -0400 (EDT)
Received: from osgiliath.mathom.us ([127.0.0.1])
by localhost (osgiliath [127.0.0.1]) (amavisd-new, port 10024)
with LMTP id 18887-01-4; Thu, 07 Apr 2005 18:56:34 -0400 (EDT)
Received: by osgiliath.mathom.us (Postfix, from userid 1000)
id 1AD3360A5CF; Thu, 07 Apr 2005 18:56:34 -0400 (EDT)
Date: Thu, 07 Apr 2005 18:56:34 -0400
From: Michael Stone <[EMAIL PROTECTED]>
Subject: Re: Bug#303650: /bin/echo: echo: needs to support -- flag
In-reply-to: <[EMAIL PROTECTED]>
To: Greg Kochanski <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Message-id: <[EMAIL PROTECTED]>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii; format=flowed
Content-disposition: inline
X-Pgp-Fingerprint: 53 FF 38 00 E7 DD 0A 9C 84 52 84 C5 EE DF 7C 88
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at mathom.us
References: <[EMAIL PROTECTED]>
User-Agent: Mutt/1.5.8i
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
On Thu, Apr 07, 2005 at 10:13:48PM +0100, Greg Kochanski wrote:
>Echo does not support the '--' flag.
No it doesn't. Use printf.
Mike Stone
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]