|
|
| version 1.1, 2003/06/17 02:50:14 | version 1.2, 2004/02/03 19:22:59 |
|---|---|
| Line 18 | Line 18 |
| /* To whomever it may concern: I have never seen the code which most | /* To whomever it may concern: I have never seen the code which most |
| Unix programs use to perform this function. I wrote this from scratch | Unix programs use to perform this function. I wrote this from scratch |
| based on specifications for the pattern matching. --RMS. */ | based on specifications for the pattern matching. --RMS. */ |
| /* | |
| * $DragonFly$ | |
| */ | |
| #ifdef SHELL | #ifdef SHELL |
| #include "config.h" | #include "config.h" |
| Line 111 int noglob_dot_filenames = 1; | Line 114 int noglob_dot_filenames = 1; |
| static int glob_match_after_star (); | static int glob_match_after_star (); |
| #ifdef __FreeBSD__ | #ifdef __DragonFly__ |
| static int collate_range_cmp (a, b) | static int collate_range_cmp (a, b) |
| int a, b; | int a, b; |
| { | { |
| Line 256 glob_match (pattern, text, dot_special) | Line 259 glob_match (pattern, text, dot_special) |
| return 0; | return 0; |
| c = *p++; | c = *p++; |
| } | } |
| #ifdef __FreeBSD__ | #ifdef __DragonFly__ |
| if ( collate_range_cmp (c1, cstart) >= 0 | if ( collate_range_cmp (c1, cstart) >= 0 |
| && collate_range_cmp (c1, cend) <= 0 | && collate_range_cmp (c1, cend) <= 0 |
| ) | ) |