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
ea1609bd4a[ce3a211dcb] Failed file normalize when tail is empty string. check-in2017-12-06 13:07:238bc984954c[ce3a211dcb] Failed file normalize when tail is empty string. check-in2017-12-06 13:06:473eb09544e5[ce3a211dcb] Failed file normalize when tail is empty string. check-in2017-12-06 13:05:51ddb94d62fe[ce3a211dcb] Failed file normalize when tail is empty string. check-in2017-12-06 13:02:32
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
The relevant commit is https://core.tcl.tk/tcl/info/ddb94d62fe70c754.
Log in (anonymous is fine) to add a comment.