Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
add a simple example to show error (stderr) redirection #729
Output redirection is nicely shown in
Both stdout and stderr terms are explained but the examples are only for stdout. It would be nice to add a simple example to show how errors can be redirected.
I wonder if this would be more appropriate for shell-extras. I'm kind of dubious as to whether many learners would use this regularly in their workflow. (For me, it's the kind of thing I need to do once in a blue moon, and need to google the syntax for every time. I always forget whether it's
I almost wonder whether we should cut the one paragraph we do have on stderr entirely. Afaik, it never comes up in any of the examples or exercises.
If we are going to talk about stderr, I wonder if we could do so using an example that forces the subject. Like, we run a command, and redirect its output to a file, but we still see some stuff printed to the terminal - what the heck?