Meld can't recognize the file path with "~" begin in a bash shell
My bash script is as below:
#!/usr/bin/bash
path1="~/a.txt"
path2="~/b.txt"
meld "$path1" "$path2" # This line can't work.
# meld ~/a.txt ~/b.txt This line works.
and then meld told me something wrong: "There was a problem opening the file "/home/username/~/a.txt".