All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steffen Nurpmeso <steffen@sdaoden.eu>
To: Jilles Tjoelker <jilles@stack.nl>
Cc: Harald van Dijk <harald@gigawatt.nl>,
	DASH shell mailing list <dash@vger.kernel.org>,
	Denys Vlasenko <vda.linux@googlemail.com>
Subject: Re: dash 0.5.11.2, busybox sh 1.32.0, FreeBSD 12.2 sh: spring TTOU but should not i think
Date: Mon, 21 Dec 2020 20:43:00 +0100	[thread overview]
Message-ID: <20201221194300.i8cmF%steffen@sdaoden.eu> (raw)
In-Reply-To: <20201221162442.GA26001@stack.nl>

Jilles Tjoelker wrote in
 <20201221162442.GA26001@stack.nl>:
 |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@sdaoden.eu>:
 |>>|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)

  reply	other threads:[~2020-12-21 19:43 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-19 17:28 dash 0.5.11.2, busybox sh 1.32.0, FreeBSD 12.2 sh: spring TTOU but should not i think Steffen Nurpmeso
2020-12-19 22:21 ` Steffen Nurpmeso
2020-12-19 23:52   ` Harald van Dijk
2020-12-21 16:24     ` Jilles Tjoelker
2020-12-21 19:43       ` Steffen Nurpmeso [this message]
2020-12-23 20:18       ` Harald van Dijk
2020-12-24 15:29         ` Jilles Tjoelker
2021-01-10 23:56         ` Harald van Dijk
2021-01-06  4:46       ` Herbert Xu
2021-01-06  4:45     ` [PATCH] jobs: Block signals during tcsetpgrp Herbert Xu
2021-01-06 21:16       ` Harald van Dijk
2021-01-06 22:41         ` Jilles Tjoelker
2021-01-07  7:36         ` Denys Vlasenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201221194300.i8cmF%steffen@sdaoden.eu \
    --to=steffen@sdaoden.eu \
    --cc=dash@vger.kernel.org \
    --cc=harald@gigawatt.nl \
    --cc=jilles@stack.nl \
    --cc=vda.linux@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.