« first day (1733 days earlier)      last day (3220 days later) » 

1:06 PM
Hello everyone
I have a script with these lines:
DOTFILES_DIR='~/dotfiles'
For some reason I can't make this line work:
xrdb $DOTFILES_DIR/Xresources.solarized
(I've tried using readlink, realpath, none of these worked)
OK, removing '' around ~/dotfiles seems to have solved the problem
 
@REACHUS Yes, the single quote makes the shell not expand the string within the quotes
Also, when you want to combine a variable with something else, it's good practice to enclose the variable in curly braces, like so: ${DOTFILES_DIR}/Xresources.solarized
The reason is that if you follow the variable name with an alphabetic character, the shell won't know where the variable name ends and the nest string starts, but the bracers will clarify that
 
1:40 PM
@JennyD Thanks, I knew I was missing something.
 
It's an easy thing to miss, I've done it myself more than once :-)
 
 
8 hours later…
9:38 PM
@JennyD Original tweet has linebreaks, which makes me less sad about the missing punctuation and capital letters.
^^ Missing full stop not intentional.
 

« first day (1733 days earlier)      last day (3220 days later) »