Skip to content
Tcl Source Code View Ticket
Login

View Ticket

menu invoked source, info script fails

Closed / Fixed222990ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-11-20 17:30:07
'info script' on Mac Tcl/Tk 8.3.1 - 8.3.2; 
(8.3.0 and earlier works):

Most often fails if doing File/Source from the menu, 
and then pick a script which contains [info script]. Usually the result is just empty,but is sometimes ":" and the [pwd] gives the install folder. If doing 'source anyPath' then everything works ok. It happens that when forst doing 'source anyPath', and the File/Source from the menu, [info script] returns the correct path; the result is unpredictable in general.
bspinnlerplain2000-11-29 16:04:49
I experience the same problem. I think I can add one more detail:

Wish starts up with a 'Console' window and a 'Wish' window on top. When I source a script with the single line
puts "fileName = [info script]"
via the File:Source menu, wish returns an empty string instead of the script's path name. If I first bring the 'Console' window to the front and then source the same script, the return value is correct. For me this behavior is reproducable.
dasplain2001-08-25 00:09:15
Logged In: YES 
user_id=90580

fixed in 8.4 with patch #435658 applied
Log in (anonymous is fine) to add a comment.