On Okt 28 2025, Martin D Kealey wrote:

> laas:~# cat t.sh
> #!/bin/bash
> echo 60 > /proc/sys/kernel/panic
> laas:~# strace -f t.sh
> ...
> writev(1, [{"60", 2}, {"\n", 1}], 2) = 2
> writev(1, [{"", 0}, {"\n", 1}], 2) = -1 EINVAL (Invalid argument)

Where is the second writev coming from?  "echo 60" should output
$'60\n', and nothing else.

-- 
Andreas Schwab, SUSE Labs, [email protected]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Reply via email to