Great Circle Associates Majordomo-Workers
(October 1998)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Regexp wizard
From: Jason L Tibbitts III <tibbs @ hpc . uh . edu>
Date: 01 Oct 1998 00:39:00 -0500
To: majordomo-workers @ greatcircle . com
In-reply-to: Russ Allbery's message of "26 Sep 1998 18:16:39 -0700"
References: <199809260202.TAA09927@ssol020.sandiegoca.ncr.com> <ufalnn6y081.fsf@sina.hpc.uh.edu> <ylk92qtkw8.fsf@windlord.stanford.edu>

>>>>> "RA" == Russ Allbery <rra@stanford.edu> writes:

[csh-style glob to regexp converter]

RA> I think that there's a module that does something along these lines
RA> already.

That might be File::KGlob2RE.  I had a look and found it unsuitable as is.
It treats the directory specifier as special (so ? and * don't match '/'),
has special metacharacters for representing directories, and makes
judicious use of eval in its code.  I doubt it would run under taint
checks.

I don't see any other applicable modules.  In any case, it seems a waste to
requires users to find yet another module for something that can be
implemented in 30 lines of code.

 - J<



Follow-Ups:
References:
Indexed By Date Previous: Documentation Update: subscribe
From: "William R. Dickson -- System Administration" <wdickson@nwnexus.net>
Next: Security flaw in confirmation cookie
From: "Andrew M. Bishop" <amb@gedanken.demon.co.uk>
Indexed By Thread Previous: Re: Regexp wizard
From: Bill Houle <bhoule@sparc.sandiegoca.ncr.com>
Next: Re: Regexp wizard
From: Russ Allbery <rra@stanford.edu>

Google
 
Search Internet Search www.greatcircle.com