What was the point of separating stdout and stderr?What was the first language with regexes?What was the first programming bookWhere did the popularity of the `i` variable come from?What was the first C compiler for the Mac?How was the first working version of Google written?What's a good way to implement this “splashing water” effect on the C64?Was there ever a home PC which ran JOVIAL?What was the DOS FAT12 720k floppy raw disk format structure?What was the first language compiler to support subtype polymorphism?What is the most rudimentary input method a platform has ever been programmed in?
My colleague is constantly blaming me for his errors
Why was Pan Am Flight 103 flying over Lockerbie?
Prime in substituted benzene
Quantum jump/leap, exist or not, and instantaneous or not (for electrons)?
Have any large aeroplanes been landed — safely and without damage — in locations that they could not be flown away from?
Checkmate in 1 on a Tangled Board
Could you fall off a planet if it was being accelerated by engines?
Security Patch SUPEE-11155 - Possible issues?
pgfmath does not work
Subset of knight's move in chess.
Do home values typically rise and fall consistently across different price ranges?
A finite 2 group containing the dihedral group of order 16?
How to securely dispose of a smartphone?
What happens if a caster is surprised while casting a spell with a long casting time?
Reusable spacecraft: why still have fairings detach, instead of open/close?
/etc/hosts not working
How to describe POV characters?
How can I open this door latch with the knobs removed?
Why would anyone even use a Portkey?
How do I create a new column in a dataframe from an existing column using conditions?
Undetectable mail tracker
Why wasn't EBCDIC designed with contiguous alphanumeric characters?
What game is this character in the Pixels movie from?
List Manipulation : a,b,c,d,e,f,g,h into a,b,c,d,e,f,g,h
What was the point of separating stdout and stderr?
What was the first language with regexes?What was the first programming bookWhere did the popularity of the `i` variable come from?What was the first C compiler for the Mac?How was the first working version of Google written?What's a good way to implement this “splashing water” effect on the C64?Was there ever a home PC which ran JOVIAL?What was the DOS FAT12 720k floppy raw disk format structure?What was the first language compiler to support subtype polymorphism?What is the most rudimentary input method a platform has ever been programmed in?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I occasionally need to work with console commands and 100% of the time I want to redirect my output to a file I fail to redirect stderr as well as stdout the first time. I can't think of a single reason one would want the output and the error to got to different locations, especially since in most early programs what constituted error output and standard output was left entirely up to the programmer, and it's usage was wildly inconsistent.
I realize of course, I'm ranting in 2019. We've moved well past simply outputting to the console in most all respects; so much so it's very much the exception rather than the norm. In the early days of computing there might have been a good reason to separate stdout and stderr.
What, if it existed, was it?
programming
New contributor
add a comment |
I occasionally need to work with console commands and 100% of the time I want to redirect my output to a file I fail to redirect stderr as well as stdout the first time. I can't think of a single reason one would want the output and the error to got to different locations, especially since in most early programs what constituted error output and standard output was left entirely up to the programmer, and it's usage was wildly inconsistent.
I realize of course, I'm ranting in 2019. We've moved well past simply outputting to the console in most all respects; so much so it's very much the exception rather than the norm. In the early days of computing there might have been a good reason to separate stdout and stderr.
What, if it existed, was it?
programming
New contributor
Off topic but definitely worth your attention. Look into the history of the pseudoterminal. This is one of those ideas that keeps getting reinvented and then forgotten again. en.wikipedia.org/wiki/Pseudoterminal
– Walter Mitty
8 hours ago
2
One might trivially say, so that output and errors were not confused.
– another-dave
2 hours ago
2
"We've moved well past simply outputting to the console in most all respects" We have? How so? What do we do now?
– Cody Gray
13 mins ago
add a comment |
I occasionally need to work with console commands and 100% of the time I want to redirect my output to a file I fail to redirect stderr as well as stdout the first time. I can't think of a single reason one would want the output and the error to got to different locations, especially since in most early programs what constituted error output and standard output was left entirely up to the programmer, and it's usage was wildly inconsistent.
I realize of course, I'm ranting in 2019. We've moved well past simply outputting to the console in most all respects; so much so it's very much the exception rather than the norm. In the early days of computing there might have been a good reason to separate stdout and stderr.
What, if it existed, was it?
programming
New contributor
I occasionally need to work with console commands and 100% of the time I want to redirect my output to a file I fail to redirect stderr as well as stdout the first time. I can't think of a single reason one would want the output and the error to got to different locations, especially since in most early programs what constituted error output and standard output was left entirely up to the programmer, and it's usage was wildly inconsistent.
I realize of course, I'm ranting in 2019. We've moved well past simply outputting to the console in most all respects; so much so it's very much the exception rather than the norm. In the early days of computing there might have been a good reason to separate stdout and stderr.
What, if it existed, was it?
programming
programming
New contributor
New contributor
edited 8 hours ago
Brian Tompsett - 汤莱恩
1,5956 silver badges22 bronze badges
1,5956 silver badges22 bronze badges
New contributor
asked 8 hours ago
SidneySidney
1262 bronze badges
1262 bronze badges
New contributor
New contributor
Off topic but definitely worth your attention. Look into the history of the pseudoterminal. This is one of those ideas that keeps getting reinvented and then forgotten again. en.wikipedia.org/wiki/Pseudoterminal
– Walter Mitty
8 hours ago
2
One might trivially say, so that output and errors were not confused.
– another-dave
2 hours ago
2
"We've moved well past simply outputting to the console in most all respects" We have? How so? What do we do now?
– Cody Gray
13 mins ago
add a comment |
Off topic but definitely worth your attention. Look into the history of the pseudoterminal. This is one of those ideas that keeps getting reinvented and then forgotten again. en.wikipedia.org/wiki/Pseudoterminal
– Walter Mitty
8 hours ago
2
One might trivially say, so that output and errors were not confused.
– another-dave
2 hours ago
2
"We've moved well past simply outputting to the console in most all respects" We have? How so? What do we do now?
– Cody Gray
13 mins ago
Off topic but definitely worth your attention. Look into the history of the pseudoterminal. This is one of those ideas that keeps getting reinvented and then forgotten again. en.wikipedia.org/wiki/Pseudoterminal
– Walter Mitty
8 hours ago
Off topic but definitely worth your attention. Look into the history of the pseudoterminal. This is one of those ideas that keeps getting reinvented and then forgotten again. en.wikipedia.org/wiki/Pseudoterminal
– Walter Mitty
8 hours ago
2
2
One might trivially say, so that output and errors were not confused.
– another-dave
2 hours ago
One might trivially say, so that output and errors were not confused.
– another-dave
2 hours ago
2
2
"We've moved well past simply outputting to the console in most all respects" We have? How so? What do we do now?
– Cody Gray
13 mins ago
"We've moved well past simply outputting to the console in most all respects" We have? How so? What do we do now?
– Cody Gray
13 mins ago
add a comment |
2 Answers
2
active
oldest
votes
Because you might not want error messages in your output. According to computer scientist Stephen C. Johnson:
One of the most amusing and unexpected consequences of
phototypesetting was the Unix standard error file (!). After
phototypesetting, you had to take a long wide strip of paper and feed
it carefully into a smelly, icky machine which eventually (several
minutes later) spat out the paper with the printing visible.
One afternoon several of us had the same experience -- typesetting
something, feeding the paper through the developer, only to find a
single, beautifully typeset line: "cannot open file foobar" The
grumbles were loud enough and in the presence of the right people, and
a couple of days later the standard error file was born...
2
Diomidis Spinellis provides more context in his blog post on the topic, based on Stephen C. Johnson’s email.
– Stephen Kitt
8 hours ago
add a comment |
You are thinking that all output is for human reading.
For instance, take the Unix cpio command. It writes the archive to stdout, which is always redirected to a device or file. It writes the archive with a header before each file that contains the size of the file, which lets it calculate the offset to the next file when reading it back.
If there was an error or warning thrown in there, it would basically make it unusable after that point due to the extra data thrown in the output. Plus you would want that warning to go to your screen or error log separately from the archive, otherwise you would never see it.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "648"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sidney is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fretrocomputing.stackexchange.com%2fquestions%2f11499%2fwhat-was-the-point-of-separating-stdout-and-stderr%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Because you might not want error messages in your output. According to computer scientist Stephen C. Johnson:
One of the most amusing and unexpected consequences of
phototypesetting was the Unix standard error file (!). After
phototypesetting, you had to take a long wide strip of paper and feed
it carefully into a smelly, icky machine which eventually (several
minutes later) spat out the paper with the printing visible.
One afternoon several of us had the same experience -- typesetting
something, feeding the paper through the developer, only to find a
single, beautifully typeset line: "cannot open file foobar" The
grumbles were loud enough and in the presence of the right people, and
a couple of days later the standard error file was born...
2
Diomidis Spinellis provides more context in his blog post on the topic, based on Stephen C. Johnson’s email.
– Stephen Kitt
8 hours ago
add a comment |
Because you might not want error messages in your output. According to computer scientist Stephen C. Johnson:
One of the most amusing and unexpected consequences of
phototypesetting was the Unix standard error file (!). After
phototypesetting, you had to take a long wide strip of paper and feed
it carefully into a smelly, icky machine which eventually (several
minutes later) spat out the paper with the printing visible.
One afternoon several of us had the same experience -- typesetting
something, feeding the paper through the developer, only to find a
single, beautifully typeset line: "cannot open file foobar" The
grumbles were loud enough and in the presence of the right people, and
a couple of days later the standard error file was born...
2
Diomidis Spinellis provides more context in his blog post on the topic, based on Stephen C. Johnson’s email.
– Stephen Kitt
8 hours ago
add a comment |
Because you might not want error messages in your output. According to computer scientist Stephen C. Johnson:
One of the most amusing and unexpected consequences of
phototypesetting was the Unix standard error file (!). After
phototypesetting, you had to take a long wide strip of paper and feed
it carefully into a smelly, icky machine which eventually (several
minutes later) spat out the paper with the printing visible.
One afternoon several of us had the same experience -- typesetting
something, feeding the paper through the developer, only to find a
single, beautifully typeset line: "cannot open file foobar" The
grumbles were loud enough and in the presence of the right people, and
a couple of days later the standard error file was born...
Because you might not want error messages in your output. According to computer scientist Stephen C. Johnson:
One of the most amusing and unexpected consequences of
phototypesetting was the Unix standard error file (!). After
phototypesetting, you had to take a long wide strip of paper and feed
it carefully into a smelly, icky machine which eventually (several
minutes later) spat out the paper with the printing visible.
One afternoon several of us had the same experience -- typesetting
something, feeding the paper through the developer, only to find a
single, beautifully typeset line: "cannot open file foobar" The
grumbles were loud enough and in the presence of the right people, and
a couple of days later the standard error file was born...
edited 8 hours ago
Stephen Kitt
46k8 gold badges193 silver badges195 bronze badges
46k8 gold badges193 silver badges195 bronze badges
answered 8 hours ago
snips-n-snailssnips-n-snails
9,9762 gold badges34 silver badges79 bronze badges
9,9762 gold badges34 silver badges79 bronze badges
2
Diomidis Spinellis provides more context in his blog post on the topic, based on Stephen C. Johnson’s email.
– Stephen Kitt
8 hours ago
add a comment |
2
Diomidis Spinellis provides more context in his blog post on the topic, based on Stephen C. Johnson’s email.
– Stephen Kitt
8 hours ago
2
2
Diomidis Spinellis provides more context in his blog post on the topic, based on Stephen C. Johnson’s email.
– Stephen Kitt
8 hours ago
Diomidis Spinellis provides more context in his blog post on the topic, based on Stephen C. Johnson’s email.
– Stephen Kitt
8 hours ago
add a comment |
You are thinking that all output is for human reading.
For instance, take the Unix cpio command. It writes the archive to stdout, which is always redirected to a device or file. It writes the archive with a header before each file that contains the size of the file, which lets it calculate the offset to the next file when reading it back.
If there was an error or warning thrown in there, it would basically make it unusable after that point due to the extra data thrown in the output. Plus you would want that warning to go to your screen or error log separately from the archive, otherwise you would never see it.
add a comment |
You are thinking that all output is for human reading.
For instance, take the Unix cpio command. It writes the archive to stdout, which is always redirected to a device or file. It writes the archive with a header before each file that contains the size of the file, which lets it calculate the offset to the next file when reading it back.
If there was an error or warning thrown in there, it would basically make it unusable after that point due to the extra data thrown in the output. Plus you would want that warning to go to your screen or error log separately from the archive, otherwise you would never see it.
add a comment |
You are thinking that all output is for human reading.
For instance, take the Unix cpio command. It writes the archive to stdout, which is always redirected to a device or file. It writes the archive with a header before each file that contains the size of the file, which lets it calculate the offset to the next file when reading it back.
If there was an error or warning thrown in there, it would basically make it unusable after that point due to the extra data thrown in the output. Plus you would want that warning to go to your screen or error log separately from the archive, otherwise you would never see it.
You are thinking that all output is for human reading.
For instance, take the Unix cpio command. It writes the archive to stdout, which is always redirected to a device or file. It writes the archive with a header before each file that contains the size of the file, which lets it calculate the offset to the next file when reading it back.
If there was an error or warning thrown in there, it would basically make it unusable after that point due to the extra data thrown in the output. Plus you would want that warning to go to your screen or error log separately from the archive, otherwise you would never see it.
answered 7 hours ago
mannaggiamannaggia
1,3111 gold badge5 silver badges8 bronze badges
1,3111 gold badge5 silver badges8 bronze badges
add a comment |
add a comment |
Sidney is a new contributor. Be nice, and check out our Code of Conduct.
Sidney is a new contributor. Be nice, and check out our Code of Conduct.
Sidney is a new contributor. Be nice, and check out our Code of Conduct.
Sidney is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Retrocomputing Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fretrocomputing.stackexchange.com%2fquestions%2f11499%2fwhat-was-the-point-of-separating-stdout-and-stderr%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Off topic but definitely worth your attention. Look into the history of the pseudoterminal. This is one of those ideas that keeps getting reinvented and then forgotten again. en.wikipedia.org/wiki/Pseudoterminal
– Walter Mitty
8 hours ago
2
One might trivially say, so that output and errors were not confused.
– another-dave
2 hours ago
2
"We've moved well past simply outputting to the console in most all respects" We have? How so? What do we do now?
– Cody Gray
13 mins ago