buggrep - Bugs: bug #34917, grep refuses to run when input...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #34917: grep refuses to run when input file is also the output, even when the -q option is used

Submitter:  Nicolas Vigier <boklm>
Submitted:  Mon 28 Nov 2011 12:29:36 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Wed 29 Feb 2012 05:37:57 PM UTC, comment #2: 

This bug was fixed in the master in December 2011 with commit ed071726be5758b1422d7972450a1867655268b4.

Paul Eggert <eggert>
Group Member
Mon 28 Nov 2011 12:47:28 AM UTC, comment #1: 

Oops, I misunderstood the issue reported on Mageia bugzilla.

The issue is a little different :
When the -q option is used, there should not be any error output. grep version 2.10 outputs errors about "input file `./file' is also the output" even when the -q options is used.

But not rejecting the command when the -q option is used should also fix this.

Nicolas Vigier <boklm>
Mon 28 Nov 2011 12:29:36 AM UTC, original submission:  

Forwarding an issue that was reported on Mageia bugzilla :
https://bugs.mageia.org/show_bug.cgi?id=3501

To avoid infinite disk-filling loop, grep since version 2.10 rejects commands in which the output file is also one of the inputs.

However it also rejects commands which have the -q option. If the -q option is used, there is no output so it cannot create a loop, therefore the command should not be rejected.

Nicolas Vigier <boklm>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #24476:  grep_-q.patch added by boklm (712B - text/x-patch - Proposed patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by eggert (Posted a comment)
  • -email is unavailable- added by boklm (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-02-29 eggert StatusNone Fixed
    2012-02-29 eggert Open/ClosedOpen Closed
    2011-11-28 boklm Attached File- Added grep_-q.patch, #24476

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code