From: Code Con Carne Subject: bug#80010: timeout echo vs. timeout cat Date: Tue, 16 Dec 2025 15:31:35 +0000
>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. Works for me: --- Cut Here --- $ dir myfifo 0 prw-r--r-- 1 user user 0 Dec 16 12:51 myfifo $ time timeout 5 sh -c 'echo foo > myfifo' real 0m5.013s user 0m0.008s sys 0m0.011s Status: 124 $ --- Cut Here --- Note that I tested with sh (which is "dash") and not bash. There should not be a difference, but I suppose I should test bash just for completeness. ================================================================================= Please do not send me replies to my posts on the list. I always read the replies via the web archive, so CC'ing to me is unnecessary. When responding to my posts, please try to refrain from giving bureaucratic answers. If you have nothing useful to say, then just click Next and go on.
