gsearchtool: patch for non-GNU find support
- From: Bert Driehuis <bert_driehuis nl compuware com>
- To: gnome-list gnome org
- Subject: gsearchtool: patch for non-GNU find support
- Date: Sun, 3 Jan 1999 18:36:52 +0100 (CET)
The attached diff will make gsearchtool refrain from the GNU extension of
"-not" to find, instead using "!" for negation. This change helps BSD/OS
and, I presume, other non-Linux OS's. The patch will work with at least
the Linux distribution that I tried it on (dunno which distibution that
machine uses though).
Cheers,
-- Bert
Bert Driehuis, MIS -- bert_driehuis@nl.compuware.com -- +31-20-3116119
The grand leap of the whale up the Fall of Niagara is esteemed, by all
who have seen it, as one of the finest spectacles in nature.
-- Benjamin Franklin.
*** ref/gnome-utils-0.99.0/gsearchtool/gsearchtool.c Sun Nov 29 11:45:10 1998
--- gnome-utils-0.99.0/gsearchtool/gsearchtool.c Sun Jan 3 18:08:21 1999
***************
*** 30,34 ****
{ FIND_OPTION_CHECKBOX_TRUE, "-nouser -o -nogroup",
"Invalid user or group" },
! { FIND_OPTION_TEXT, "-not -name '%s'", "Filenames except" },
{ FIND_OPTION_GREP, "fgrep -l '%s'", "Simple substring search" },
{ FIND_OPTION_GREP, "grep -l '%s'", "Regular expression search" },
--- 30,34 ----
{ FIND_OPTION_CHECKBOX_TRUE, "-nouser -o -nogroup",
"Invalid user or group" },
! { FIND_OPTION_TEXT, "! -name '%s'", "Filenames except" },
{ FIND_OPTION_GREP, "fgrep -l '%s'", "Simple substring search" },
{ FIND_OPTION_GREP, "grep -l '%s'", "Regular expression search" },
***************
*** 39,43 ****
/*this will not include the directories in search*/
! char defoptions[]="-not -type d";
/*this should be done if the above is made optional*/
/*char defoptions[]="-mindepth 0";*/
--- 39,43 ----
/*this will not include the directories in search*/
! char defoptions[]="! -type d";
/*this should be done if the above is made optional*/
/*char defoptions[]="-mindepth 0";*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]