Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

11
  • So if I'm understanding right, the shell connects stderr to the tty when stdin is redirected (via pipe or other means)? Or just always connects stderr to the tty? Commented Jun 30, 2018 at 17:47
  • 1
    When you log in, stderr is connected to your login terminal. Commented Jun 30, 2018 at 18:00
  • 2
    i =+ 1 is perfectly valid C, and is equal to i = (+1). Granted, the former is nice candidate for the underhanded C contest. Commented Jun 30, 2018 at 18:57
  • 1
    OK, it may be that it just creates a warning. I changed the code to something else from C in 1977. Commented Jun 30, 2018 at 19:14
  • 1
    It seems that I am aware of more shells, since I do know of at least one shell that reads from other than its standard input. (-: Commented Jul 1, 2018 at 0:27