Skip to content
Tcl Source Code View Ticket
Login

View Ticket

The source command should read from an open channel

Closed / Fixed218057ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:52:39
OriginalBugID: 1453 RFE
Version: 8.0p2
SubmitDate: '1999-03-04'
LastModified: '2000-04-26'
Severity: LOW
Status: Closed
Submitter: pat
ChangedBy: hobbs
RelatedBugIDs: 4226
OS: Linux
OSVersion: In ancient times it was a slackware, but it evolved and is prett
Machine: Other
FixedDate: '2000-10-25'
ClosedDate: '2000-04-26'


Name:
Harald

DesiredBehavior:
Once in a while it would be great, if the source-command were
able to read from an input channel, a pipe in particular. It is
so nice to have a subprocess emit Tcl-code which is then 
interpreted by the ``main'' Tcl-program.

A loop with gets and eval is almost what I need, but it requires
a lot of work to parse multi-line commands.




This is actually easier to simulate in Tcl than it would be to do
in C (for the source command).  If the user uses 'info complete',
testing for multi-line commands should be trivial. 
-- 04/26/2000 hobbs
welch Closed ticket [218057ffff]. [History diff]2000-10-26 08:13:44
dgp Open ticket [218057ffff]. [History diff]2001-04-03 07:23:36
dgp Closed ticket [218057ffff]. [History diff]2001-04-03 07:24:48
dgp Ticket [218057ffff]: 3 changes [History diff]2001-04-04 03:33:59
Log in (anonymous is fine) to add a comment.