I'm working on a sudoers file. What is the correct way to state the following?
Zero or more command line options, each starting with a single or double dash, followed by one or more characters. I want to effectively allow both long and short command line options, zero or more total, e.g. -v --variable -vb, etc.
I believe that the following would be the appropriate perl regex.
... <binary> (?:-{1,2}\w+)* <file>
I'm not sure exactly how to translate that into something bash /sudoers compatible.