Re: [gentoo-user] Converting shell globs to regular expressions

2023-04-13 Thread Michael Orlitzky
On Thu, 2023-04-13 at 18:27 +0200, Dr Rainer Woitok wrote: > Greetings, > > does anybody know about some command to convert shell globs (shell pat- > terns) into regular expressions? > What exactly are you trying to do? This sounds like an XY problem (https://xyproblem.info/).

Re: [gentoo-user] Converting shell globs to regular expressions

2023-04-13 Thread David M. Fellows
>Greetings, > >does anybody know about some command to convert shell globs (shell pat- >terns) into regular expressions? Back in the old Unix days there was a >"glob" command, but "e-files" only turns up a GNU library. Would one of the functions in dev-perl/Text-Glob do what you need? DaveF

[gentoo-user] Converting shell globs to regular expressions

2023-04-13 Thread Dr Rainer Woitok
Greetings, does anybody know about some command to convert shell globs (shell pat- terns) into regular expressions? Back in the old Unix days there was a "glob" command, but "e-files" only turns up a GNU library. I am aware of Python's "fnmatch.translate()" function, but this -- of course