When I do this, it works perfectly and downloads the file at the required path.
wget -O ~/Temp/my.file "https://github.com/sometool/releases/latest/download/the.file"
But when I do this:
PATH="~/Temp/my.file"
wget -O $PATH "https://github.com/sometool/releases/latest/download/the.file"
It says:
~/Temp/my.file: No such file or directory
I've tried with or without quotes, wrapped in $(echo $PATH), always the same error.
I am using MacOS Terminal.