Your message dated Sat, 10 Dec 2005 20:18:25 -0500
with message-id <[EMAIL PROTECTED]>
and subject line grep -C bug fixed
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; 18 Apr 2004 22:18:59 +0000
>From [EMAIL PROTECTED] Sun Apr 18 15:18:59 2004
Return-path: <[EMAIL PROTECTED]>
Received: from thue.kollegiegaarden.dk [194.239.210.27]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1BFKcs-0004Ft-00; Sun, 18 Apr 2004 15:18:58 -0700
Received: from localhost (localhost [127.0.0.1])
by thue.kollegiegaarden.dk (Postfix) with ESMTP
id EB5FBE2BC2; Mon, 19 Apr 2004 00:18:46 +0200 (CEST)
Received: from thue.kollegiegaarden.dk ([127.0.0.1])
by localhost (thue [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
id 13710-01; Mon, 19 Apr 2004 00:18:34 +0200 (CEST)
Received: by thue.kollegiegaarden.dk (Postfix, from userid 1000)
id 9D086E2BE9; Mon, 19 Apr 2004 00:18:33 +0200 (CEST)
From: Thue Janus Kristensen <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: grep: Man page for -C doesn't match behaviour
X-Mailer: reportbug 1.50
Date: Mon, 19 Apr 2004 00:18:33 +0200
Message-Id: <[EMAIL PROTECTED]>
X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at thue.kollegiegaarden.dk
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-7.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level:
X-CrossAssassin-Score: 1
Package: grep
Version: 2.4.2-3
Severity: normal
The man page for -C says this:
-------------------
-C [NUM], -NUM, --context[=NUM]
Print NUM lines (default 2) of output context.
-------------------
So doing the following I would expect to match use number 1 witch the following:
#grep -C 12345 thue /etc passwd
However I get:
grep: thue: No such file or directory
It seems probably that it thought "12345" was the search string and "thue"
therefore one of the file arguments.
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux thue 2.4.25 #1 Sat Mar 20 02:20:51 CET 2004 i586
Locale: LANG=C, LC_CTYPE=C
Versions of packages grep depends on:
ii libc6 2.2.5-11.5 GNU C Library: Shared libraries an
---------------------------------------
Received: (at 244552-done) by bugs.debian.org; 11 Dec 2005 01:18:28 +0000
>From [EMAIL PROTECTED] Sat Dec 10 17:18:28 2005
Return-path: <[EMAIL PROTECTED]>
Received: from ms-smtp-01.nyroc.rr.com ([24.24.2.55])
by spohr.debian.org with esmtp (Exim 4.50)
id 1ElFrA-0004nI-El
for [EMAIL PROTECTED]; Sat, 10 Dec 2005 17:18:28 -0800
Received: from andromeda (cpe-69-202-136-66.twcny.res.rr.com [69.202.136.66])
by ms-smtp-01.nyroc.rr.com (8.12.10/8.12.10) with ESMTP id
jBB1IQFe008357
for <[EMAIL PROTECTED]>; Sat, 10 Dec 2005 20:18:26 -0500 (EST)
Received: from pryzbyj by andromeda with local (Exim 4.60)
(envelope-from <[EMAIL PROTECTED]>)
id 1ElFr7-0005wg-OM
for [EMAIL PROTECTED]; Sat, 10 Dec 2005 20:18:25 -0500
Date: Sat, 10 Dec 2005 20:18:25 -0500
To: [EMAIL PROTECTED]
Subject: grep -C bug fixed
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.11
From: Justin Pryzby <[EMAIL PROTECTED]>
X-Virus-Scanned: Symantec AntiVirus Scan Engine
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-Level:
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no
version=2.60-bugs.debian.org_2005_01_02
It would seem that this bug is fixed, therefor I'm closing it.
grep -C 3 now works as expected. 3 is interpretted as a required
option to the -C argument, and not as a filename:
$ grep -C 1 -F $'pryzbyj\nlist' /etc/passwd
operator:x:37:37:Operator:/var:/bin/sh
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
--
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
pryzbyj:x:1000:1000:Justin Pryzby,NAU,315 379 9287,:/home/pryzbyj:/bin/bash
sshd:x:100:65534::/var/run/sshd:/bin/false
--
Clear skies,
Justin
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]