(It does have consequences when it comes to symlinks but that's definitely too much detail on this already large answer). It will also give you occasional benefits that I won't go into let's just say in my experience, trailing slashes tend to be more unwelcome than welcome, and they are definitely not needed. In fact, if you didn't have a trailing / on the definition of ROOT, I'd be writing FILE='$ROOT/bdd.encrypted'
Personally I think the form using double-quotes is preferable because visually it's nicer.īy the way, for similar reasons I would do the FILE assignment like: FILE='$ instead of simply $NAME - to separate the variable name from any letter following. The double-quotes turns on quoting (a form which has some magic) and the backslash is capable of quoting a single character following it. Or DESTINATION=/home/hogar/Ubuntu\ One/folder
The assignment to DESTINATION needs to be only one of these two: DESTINATION='/home/hogar/Ubuntu One/folder'
Your step to prepare the variables is 'close enough' and will work, but it does show a weakness in understanding (which is why you posted!)