From: iand on
Though the command "file mkdir" creates the directory specified, it
doesnt return the the directory path and so nesting this command is
not useful.
How to get the value it evaluates?

% set dirname [file mkdir ~/testdir]
% puts $dirname

% file exists ~/testdir
1
%