1

I am running the following command on the terminal:

python -c "input('Message')" 2> log

but the Message doesn't appear on the screen. Any ideas why this happens?

1 Answer 1

2

In these circumstances, and in spite of what the documentation says, Python writes the prompt to standard error — so it is sent to log.

3
  • The documentation should be updated. Commented Apr 18, 2023 at 21:13
  • @adosar I believe the proper channel to report this is an email to [email protected]. Commented Apr 18, 2023 at 21:35
  • @doneal24 as the links in my answer show, it’s already been reported and extensively discussed. Commented Apr 18, 2023 at 21:40

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.