Jilles Tjoelker wrote in <20201221162442.GA26001@xxxxxxxx>: |On Sat, Dec 19, 2020 at 11:52:31PM +0000, Harald van Dijk wrote: |> On 19/12/2020 22:21, Steffen Nurpmeso wrote: |>> Steffen Nurpmeso wrote in |>> <20201219172838.1B-WB%steffen@xxxxxxxxxx>: |>>|Long story short, after falsely accusing BSD make of not working | |>> After dinner i shortened it a bit more, and attach it again, ok? |>> It is terrible, but now less redundant than before. |>> Sorry for being so terse, that problem crosses my head for about |>> a week, and i was totally mislead and if you bang your head |>> against the wall so many hours bugs or misbehaviours in a handful |>> of other programs is not the expected outcome. | |> I think a minimal test case is simply | |> all: |> $(SHELL) -c 'trap "echo TTOU" TTOU; set -m; echo all good' | |> unless I accidentally oversimplified. | |Yes, and it can be simplified a bit more to remove make from the |picture: | (SHELL -c 'trap "echo TTOU" TTOU; set -m; echo all good'; :) Cool, .. but it all seems to depend on the outer shell #$ bash -c "( /bin/dash -c 'trap echo\ TTOU TTOU; set -m; echo all good' )" /bin/dash: 1: set: Cannot set tty process group (Interrupted system call) #$ mksh -c "( /bin/dash -c 'trap echo\ TTOU TTOU; set -m; echo all good' )" /bin/dash: 1: set: Cannot set tty process group (Interrupted system call) #$ dash -c "( /bin/dash -c 'trap echo\ TTOU TTOU; set -m; echo all good' )" all good which results in the funny experience #?0|kent:tmp$ smake -f t.mk SHELL=/bin/bash .../bin/bash -c 'trap "echo TTOU" TTOU; set -m; echo all good' all good #?0|kent:tmp$ smake -f t.mk SHELL=/bin/mksh .../bin/mksh -c 'trap "echo TTOU" TTOU; set -m; echo all good' all good #?0|kent:tmp$ smake -f t.mk SHELL=/bin/dash .../bin/dash -c 'trap "echo TTOU" TTOU; set -m; echo all good' /bin/dash: 1: set: Cannot set tty process group (Interrupted system call) smake: *** Code 2 (No such file or directory) from command line for target 'all'. smake: Couldn't make 'all'. Ah, it is a Monday .. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)