Fix enviroment variable `DIFF_OPTIONS' problem
Fix --ignore-case option That port fails to work when DIFF_OPTIONS is set to something like "-u" and the "-i" option to wdiff also fails to work (not the -i option is not in the man page but it is in the NEWS file). Submitted by: Dave Chapeskie <dchapes@ddm.crosswinds.net>
This commit is contained in:
parent
0e6e60f2b8
commit
35fef80e21
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=46304
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= wdiff
|
||||
PORTVERSION= 0.5
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= ${MASTER_SITE_GNU}
|
||||
MASTER_SITE_SUBDIR= wdiff
|
||||
|
13
textproc/wdiff/files/patch-ac
Normal file
13
textproc/wdiff/files/patch-ac
Normal file
@ -0,0 +1,13 @@
|
||||
--- wdiff.c.orig Sun Nov 6 02:57:23 1994
|
||||
+++ wdiff.c Wed Aug 1 16:48:38 2001
|
||||
@@ -892,8 +892,9 @@
|
||||
{
|
||||
/* Launch the diff program. */
|
||||
|
||||
+ unsetenv ("DIFF_OPTIONS");
|
||||
if (ignore_case)
|
||||
- input_file = readpipe (DIFF_PROGRAM, "-c", left_side->temp_name,
|
||||
+ input_file = readpipe (DIFF_PROGRAM, "-i", left_side->temp_name,
|
||||
right_side->temp_name, NULL);
|
||||
else
|
||||
input_file = readpipe (DIFF_PROGRAM, left_side->temp_name,
|
Loading…
Reference in New Issue
Block a user