3 ms·
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
by cmacleod4 2y 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.
- mirekrusin 2y agoShould be starts with ~/
- cmacleod4 2y agoNo, ~abc will be interpreted as the home directory of user abc in Tcl 8.*
- eviks 2y agoThen you fix this mistake, not remove ~ completely
- Y_Y 2y agoIt's not a mistake
- mirekrusin 2y agoIf it's not a mistake then why they took it off?
- cmacleod4 2y agoThe 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.
- eviks 2y agoSo they copied the mistake from some shell (you don't need much experience to realize it's unwise not to use a separator to separate)