bug#80010: timeout echo vs. timeout cat
Code Con Carne via GNU coreutils Bug Reports <[email protected]> Tue, 16 Dec 2025 15:31:35 +0000
| Newsgroups | gmane.comp.gnu.core-utils.bugs |
|---|---|
| Message-ID | <9vvu2kFi2ttjfFbW2OZ7TAfFBB1KVnBQQDQIKWW6ZxbdN0HLFDbKqIvxHXUxCOYB3AR3HK-vvhepnWD_28_Eht1tk0zJyIDq4nqSCSh5l0A=@protonmail.com> |
Thanks for your response. I thought I understood until I tried $ timeout 1 bash -c "echo foo > pipe" but that doesn't work either. I achieved my intent with dd and a here-document. Sent from Proton Mail for Android. -------- Original Message -------- On Monday, 12/15/25 at 06:28 Pádraig Brady <[email protected]> wrote: On 15/12/2025 03:08, Collin Funk wrote: > I agree that this behavior isn't obvious. :) We should probably better document timeout's interactions with shell constructs, as it's a common question and tricky to see what's going on: https://unix.stackexchange.com/questions/727895/capture-process-signal-terminated-message-output-in-shell-pipeline https://superuser.com/questions/1260918/bash-pipeline-signal-propagation-how-does-it-work/1261201#1261201 https://stackoverflow.com/questions/68479811/why-does-usr-bin-timeout-kill-the-entire-pipe/68482748#68482748 https://unix.stackexchange.com/questions/231526/timeout-breaking-pipes-and-wc/751212#751212 I'll see can I come up with something for the info docs cheers, Padraig