Hacker News new | ask | show | jobs
by cmacleod4 624 days ago
In the long run, special cases like that often turn out to be more trouble than they are worth. If an ordinary file happened to start with '~' it would not be handled correctly. So you either accept or ignore that potential problem, or you have to write extra code to work around it. It's safer to not have such special cases at all.
1 comments

Should be starts with ~/
No, ~abc will be interpreted as the home directory of user abc in Tcl 8.*
Then you fix this mistake, not remove ~ completely
It's not a mistake
If it's not a mistake then why they took it off?
The original design decision was to behave like a shell, where ~ means your own home dir and ~fred means fred's home dir. With the benefit of experience, this is now seen to be unwise and a different decision has been made.