[sudo-users] any way to match a command argument pattern like [:digit:]+

Christoph Anton Mitterer calestyo at scientia.net
Sun Jul 1 20:29:40 EDT 2012


Hi.

When specifying the allowed arguments for a command to be run, is there
anyway to match a pattern that is one or more digits ... or even better
n to m digits?

Things like:
[[\:digit\:]][[\:digit\:]]*
or
[0-9][0-9]*

are obviously not what I want as * is "match any character".


Cheers,
Chris.


More information about the sudo-users mailing list