/some/long/and/annoying/path I have several scripts I need to give sudo access to, so I write in my
Cmnd_Alias MY_SCRIPTS = /some/long/and/annoying/path/foo.sh, \ /some/long/and/annoying/path/bar.sh, \ /some/long/and/annoying/path/baz.sh, \ /some/long/and/annoying/path/qux.sh, \ /some/long/and/annoying/path/quux.sh, ...
But I don't like to repeat myself.
I realize I can just write (B):
Cmnd_Alias MY_SCRIPTS = /some/long/and/annoying/path/
To cover all the scripts under
/some/long/and/annoying/path/ but I do like the control of specifying each file by name.
So my question is:
Is there a syntax such as (C):
MY_DIR = /some/long/and/annoying/path Cmnd_Alias MY_SCRIPTS = $MYDIR/foo.sh, \ $MYDIR/bar.sh, \ $MYDIR/baz.sh, \ $MYDIR/qux.sh, \ $MYDIR/quux.sh, ...
That will be both explicit and DRY?
Note that: No is an acceptable answer that will let me carry on with my life.