So really, your goal is to somehow get back from $SSH_ORIGINAL_COMMAND the original arguments, check that the first three are what they should be, and then execute the command line without further expansion. Since $SSH_ORIGINAL_COMMAND doesn't give you any way to tell spaces between arguments from spaces inside arguments, one can't do much better than your approach.
For the final exec, you could just use exec "[EMAIL PROTECTED]" . Since bash does not re-expand the contents of variables when they are used, backquotes and other shell constructs in [EMAIL PROTECTED] will not take effect, i.e., you're safe. Matt -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
