OK, that quick fix will work for whitespace but still break on apostrophes.
How about using the escapeshellparam sub? https://github.com/jimsalterjrs/sanoid/blob/61000c9da2f8762424ba2de8a49abb1b7ec5154d/syncoid#L2070 Or, better yet, replace that sub with this: https://metacpan.org/dist/String-ShellQuote/source/ShellQuote.pm (why reinvent the wheel?). András -- Minél távolabbról nézzük, annál messzebbről látjuk.