Tcl Source Code

View Ticket
Login
Ticket UUID: f3ba57600d0b0f29d6d3f8e5d26c1f17a8594cdb
Title: Safe Source Alias noisy - works badly with package
Type: Bug Version: 8.6
Submitter: anonymous Created on: 2017-07-14 08:57:55
Subsystem: 33. Safe Base Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2020-12-31 15:55:02
Resolution: Fixed Closed By: kjnash
    Closed on: 2020-12-31 15:55:02
Description:
safe.tcl line 670 reads:
	return -code error "no such file or directory"

Should read:
	return -code error -errorcode "POSIX EACCES" "no such file or directory"

Reason being, package.tcl expects that errorcode, else it bleats about not being able to load a pkgIndex.tcl file ... the Source Alias function in safe.tcl doesn't properly emulate native [source].

Colin
User Comments: kjnash added on 2020-07-21 21:57:36:
Fixed in branch safe-bugfixes-8-6 commit [803cdad7cf].