-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC2088
Vidar Holen edited this page Oct 4, 2015
·
7 revisions
rm "~/Desktop/$filename"
rm "$HOME/Desktop/$filename"
Tilde does not expand to the user's home directory when it's single or double quoted. Use double quotes and $HOME
instead.
Alternatively, the ~/
can be left unquoted, as in rm ~/"Desktop/$filename"
.
If you don't want the tilde to be expanded, you can ignore this message.