Closed Bug 900144 Opened 6 years ago Closed 6 years ago

Add redirect shell built-in for changing stdout/stderr destination

Categories

(Core :: JavaScript Engine, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: sfink, Assigned: sfink)

References

Details

Attachments

(1 file, 1 obsolete file)

If you want to write out multiple files from JS, then a writefile(filename) API works, but then you have to have the entire string buffered in memory. A way to sidestep this without introducing a File object headache to the shell is to allow redirecting stdout to a different file.
We could also have an 'append' function that may or may not secretly cache the file descriptor
Blocks: 898815
Requesting your review here just because this happens to be a prerequisite of bug 898815.
Attachment #792385 - Flags: review?(bhackett1024)
Attachment #783907 - Attachment is obsolete: true
Attachment #792385 - Flags: review?(bhackett1024) → review+
https://hg.mozilla.org/mozilla-central/rev/c5ab7a9c6cd5
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
Depends on: 909363
You need to log in before you can comment on or make changes to this bug.