Re: Monitor mode handling (bug ?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Ganael.

Ganael Laplanche wrote in
 <2755634.0OmqyTZxqa@xxxxxxxxxxxxxxxxxxxxxxxx>:
 |On Thursday, January 12, 2023 4:00:49 PM CET Steffen Nurpmeso wrote:
 |
 |>|I could not find Jilles' commit (cd60e2c) equivalent in dash code, so I
 |>|presume enabling job control without a tty in non-interactive mode \
 |>|is just not
 |>|possible with dash, am I right ?
 |> 
 |> It seems i have not really looked at the problem you have.
 |> Sorry, yes, that not.
 |
 |Thanks for this confirmation!

Well i mean, in spirit of Wheeler's "anything is possible with
(one more) indirection" it could be possible nonetheless?

  #!/bin/dash
  rm -f BGBG
  (
  set -m
  i=$(set -o)
  echo >&2 set sub 1 is $i
  (
  sleep 1
  echo i am here > BGBG
  set -o >> BGBG
  ) &
  i=$!
  echo >&2 JOB IS $i
  wait $i
  ) & #</dev/null >/dev/null &

--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)



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux