Backup directories with space in directory name
Colin Watson
cjwatson at ubuntu.com
Sat Dec 31 04:50:47 UTC 2016
On Fri, Dec 30, 2016 at 10:26:18PM -0600, W Scott Lockwood III wrote:
> That is odd. Have you tried to double escape it? You really shouldn't need
> to, but it can't hurt to try.
Yes, it really can. Given that the script already has incorrect
quoting, if you try that you'll get different results depending on the
way in which the value is expanded (perhaps not in this specific case,
but it would be true after extending the script only slightly in certain
directions); and in any case that approach indicates a fundamental
misunderstanding of shell quoting, which is worth setting straight
sooner rather than later if you're writing anything more than trivial
shell scripts. In any case it won't work.
See my other reply for more detail on this.
--
Colin Watson [cjwatson at ubuntu.com]
More information about the ubuntu-users
mailing list