Categories
Development Linux Ubuntu

Why isn’t tilde recognised as home folder in this case?

I’ll get straight to it. This doesn’t work:

daniel@cassiopeia:~/.wine/drive_c/tools/Family Tree v2.0$ ls "~/.wine/drive_c/tools/Family Tree v2.0"
ls: cannot access '~/.wine/drive_c/tools/Family Tree v2.0': No such file or directory

But this does:

daniel@cassiopeia:~/.wine/drive_c/tools/Family Tree v2.0$ ls "/home/daniel/.wine/drive_c/tools/Family Tree v2.0"
Dossiers                           Dossiers_orig   Infos.opt      Racines.exe  'Register OCX.bat'   racines.CNT
Dossiers-2019.11.03-11.46.tar.gz   Html            REGSVR32.exe   Racines.hlp   Uninst.isu          readme.txt

Given that ~ is supposed to be the same as /home/daniel, what’s going on here?

Leave a Reply

Your email address will not be published. Required fields are marked *