Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2017-12-11
14:10 • Ticket [ce3a211dcb] Single character directories and glob break pwd stat... artifact: 46c4986e8a user: pooryorick
2017-12-06
13:09 • Closed ticket [ce3a211dcb]. artifact: aa61aa8fd5 user: dgp
13:07
[ce3a211dcb] Failed file normalize when tail is empty string. check-in: ea1609bd4a user: dgp tags: trunk
13:06
[ce3a211dcb] Failed file normalize when tail is empty string. check-in: 8bc984954c user: dgp tags: core-8-branch
13:05
[ce3a211dcb] Failed file normalize when tail is empty string. check-in: 3eb09544e5 user: dgp tags: core-8-6-branch
13:02
[ce3a211dcb] Failed file normalize when tail is empty string. check-in: ddb94d62fe user: dgp tags: core-8-5-branch
00:11 • Ticket [ce3a211dcb] Single character directories and glob break pwd stat... artifact: 63211d8175 user: dgp
2017-12-05
17:24 • New ticket [ce3a211dcb]. artifact: 62b596e2ed user: dgp

Single character directories and [glob] break [pwd]

Closed / Fixedce3a211dcb42ca51887124815d754d68e0d312ddCreated 9 years agoUpdated 9 years ago
Descriptionplain2017-12-05 17:24:15
Reported on comp.lang.tcl by Andrés García

This script should print "1".  Since 8.5a0 it prints "0" instead.

file mkdir Test
cd Test
file mkdir A
set dir [lindex [glob */] 0]
cd $dir
puts [string match */A [pwd]]
cd ..
file delete A
cd ..
file delete Test
Referenced by4
dgpplain2017-12-06 00:11:51
I have a fix for this.  Working on getting it tidy enough to commit.
dgpplain2017-12-06 13:09:19
Fix checked in to all active branches.
pooryorickwiki2017-12-11 14:10:34
Log in (anonymous is fine) to add a comment.