In my .sh file, I have this, cp $file $SOME_PATH
, while $SOME_PATH is exported as export SOME_PATH="~/path/to/path/"
. But when I ran this .sh file, I got error message saying like * no such "~/path/to/path/" exists.*
I replaced ~ as $HOME, then the error was gone.
So what's up here with the tilde?
Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…