Re: file command bug on windows



On Mar 30, 12:50 pm, suchenwi <richard.suchenwirth-
bauersa...@xxxxxxxxxxx> wrote:
On 29 Mrz., 20:21, solar <solaradmin2...@xxxxxxxxx> wrote:

% file type ~123
user "123" doesn't exist
% file type ~456
user "456" doesn't exist
% cd ~456
user "456" doesn't exist

This has not to do with the file command, but with Tcl's file name
resolution of ~ (as evident from the cd error). If filenames starting
with ~ are allowed in your application, you can sanitize them with
code like this:
% regsub {^~} ~456~78 ./&
./~456~78


Thanks for the solution. That will work...
But I was just wanted to know if "file", "cd", etc. should have been
written
to ignore interpreting "~dir" as a user's home directory.
.