source on a fifo works only every other time
Closed / Fixed218308ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:55:58
OriginalBugID: 3688 Bug
Version: 8.0.3
SubmitDate: '1999-11-24'
LastModified: '2000-04-26'
Severity: CRIT
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Linux-Red Hat
Machine: Pentium Pro
FixedDate: '2000-10-25'
ClosedDate: '2000-04-26'
Name: Jørgen Steensgaard
ReproducibleScript:
jsm 1941> cat demo
#!/usr/bin/tclsh
set src [lindex $argv 0]
puts stderr "I will read from $src"
source $src
puts stderr " ... that's it"
jsm 1942> cat tktest1
puts {Testing one}
jsm 1943> (cat tktest1 >> tkfifo) | demo tkfifo
I will read from tkfifo
... that's it
jsm 1944> ( cat tktest1 >> tkfifo ) | demo tkfifo
I will read from tkfifo
Testing one
... that's it
ObservedBehavior:
The above session shows
1. a program that will display the bad behaviour.
2. the contents of a file to be sourced through a fifo
3. a call of the program with no reaction on the source
4. the same call with the expected reaction
Going on leads to an alternation between erroneous and correct behaviour.
DesiredBehavior:
I would expect to see the correct behaviour every time.
The user likely has a different unix shell with different default
behavior, because for me you can't >>tkfifo without having tkfifo
exist first. So I did:
vitoria [~/tmp/3688] 13 % cat >! tkfifo
vitoria [~/tmp/3688] 14 % ( cat tktest1 >> tkfifo ) | demo tkfifo
I will read from tkfifo
Testing one
... that's it
vitoria [~/tmp/3688] 15 % ( cat tktest1 >> tkfifo ) | demo tkfifo
I will read from tkfifo
Testing one
Testing one
... that's it
Creating the empty tkfifo first, and all seems to work. This is
on RedHat with tcsh and tcl8.0.4.
-- 04/26/2000 hobbs
welch Closed ticket [218308ffff].
[History diff]2000-10-26 08:19:00
dgp Ticket [218308ffff]: 3 changes
[History diff]2001-04-05 08:20:13
Log in (anonymous is fine) to add a comment.