In my previous message, I suggested that python might determine that some input was given.
I have tested it now by letting the command print a message in case input was determined,
and indeed, while the terminal still produces the error, using `shell-command-to-string` now
returns the printed message. So I guess the 'hypothesis' was correct.