How can I expand '~' in directory path?

s!~!glob("~")!ge

works.

Published: 2013-01-24(Thu) 02:59