#3963 cd/pwd have problems on Windows Vista

obsolete: 8.4.14
closed-fixed
5
2013-01-09
2008-03-26
Anonymous
No

On Windows Vista, as a standard (non-admin) user
the following tcl code

cd "C:/Documents and Settings"
pwd
-> displays C:/Documents and Settings
cd myname (replace with your user name)
-> does not complain but
-> does not change the directory actually
pwd
-> displays C:/Documents and Settings/

In comparison, the Cygwin shell behaves correctly.
It changes the current directory and the second pwd
displays C:/Documents and Settings/myname

The problem seems to be caused by the fact that
the permissions are more restrictive on Vista:

- one cannot read the contents of
C:/Documents and Settings

- but one can change to the myname subdirectory
(this is the equivalent of the --x permission on Unix)

Apparently, Tcl is confused by these permissions

[hubert.garavel@inria.fr]

Discussion

  • Donal K. Fellows

    • labels: 105659 --> 36. Pathname Management
    • assigned_to: dkf --> vincentdarley
     
  • Jan Nijtmans

    Jan Nijtmans - 2013-01-09

    Dup of 3092089/3587096. Fixed now in all branches.

     
  • Jan Nijtmans

    Jan Nijtmans - 2013-01-09
    • assigned_to: vincentdarley --> nijtmans
    • status: open --> closed-fixed