get-content -wait does not follow a file
Votes from Connect: 14
Original Date Submitted: 7/8/2013 1:59:29 PM
Handle: Serve Laurijssen
Site Name: PowerShell
Feedback ID: 792983
Frequency: Always Happens
Regression: Yes, this happens in previous released versions
Consider the following situation:
Theres one application writing to a file with the CLR object System.Diagnostics.Trace
Windows powershell tries to follow the file with get-content "file" -wait
But whenever a line is added to the file it wont show up in the powershell console.
Would be nice if this was fixed as it makes downloading tools for this unnessecary
Product Studio item created by Connect Synchronizer due to creation of feedback ID 792983 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=792983).
$twtl= new-object diagnostics.TextWriterTraceListener "C:\temp\test.txt",
Another console with get-content "c:\temp\test.txt -wait will just not update
output of the added lines
Internal BugId: 4294
> Regression: Yes, this happens in previous released versions
It worked fine in PS2 (the switch existed but wasn't documented). I have a feeling it worked in PS3 as well, but not sure. It certainly doesn't work in PS4 and PS5.