bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep 2.5-1 sets matcher incorrectly when program prefix in use


From: Joe Buehler
Subject: grep 2.5-1 sets matcher incorrectly when program prefix in use
Date: Mon, 23 Jun 2003 10:38:41 -0400
User-agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4) Gecko/20030529

Installing grep 2.5-1 with --program-prefix=g does not correctly
select the proper matcher (grep, egrep, fgrep) because the code
in main() that looks at argv[0] is not taking into account the
transformation on the program name that --program-prefix implies.

Also, looking at the code in main(), it appears that the win32-specific
code that massages argv[0] should be BEFORE the argv[0] checks.
--
Joe Buehler





reply via email to

[Prev in Thread] Current Thread [Next in Thread]