Skip to content
Tcl Source Code View Ticket
Login

View Ticket

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.