Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-06-11
00:17 • Closed ticket [969509ffff]: pwd might return relative paths plus 6 other c... artifact: 052892755b user: vasiljevic
2004-06-09
10:44 • New ticket [969509ffff]. artifact: 9294e34e6f user: vasiljevic

[pwd] might return relative paths

Closed969509ffffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-06-09 10:44:08
If you do:

  % set env(HOME) some_dir
  % cd 
  % pwd
  some_dir

which is not as expected nor as it was in 8.4 or previous
Tcl versions. The command returns the *relative* path of 
the current working dir instead of the absolute path, as 
expected and as the Unix counterpart does.

Also, the documentation seems to need some improvement. 
The pwd manpage should clearly state that the command
will (must) return the full absolute path to the
current directory.
vasiljevicplain2004-06-11 00:17:00
Logged In: YES 
user_id=95086

Fixed in cvs head. Also, the man page of the [pwd] command
updated with the clarification that the [pwd] command should
really return the absolute path of the current working
directory.
Log in (anonymous is fine) to add a comment.