Tilde is not working inside double quote.what is the reason. Sometimes it's work. There is a two way defile tilde. But the second way is work fine and perfect. What is the real reason?
method 01
#!/bin/sh
location="~/my_documents"
cd "${location}"
method 02
#!/bin/sh
location=~/"my_documents"
cd "${location}"