Hello once again. Steffen Nurpmeso wrote in <20240830003343.jjUijtPY@steffen%sdaoden.eu>: |Steffen Nurpmeso wrote in | <20240827234300.47MgC1zR@steffen%sdaoden.eu>: ||Steffen Nurpmeso wrote in || <20240827000044.pV6uGLj0@steffen%sdaoden.eu>: |||Robin Humble wrote in ||| <[email protected]>: ||... |||Robin Humble wrote in ||| <[email protected]>: ||||on current RHEL9 and Fedora40, and also on s-nail git master, I ran ||||into an issue that halts a backgrounded script connected to a tty. |||| ||||as an example on RHEL9 -> |||| |||| $ ( echo blah | Mail root ) & ||||[1] 2754649 |||| $ ^M^M^M^M^C^C |||| ||||[1]+ Stopped ( echo blah | Mail root ) |||| $ fg ||||( echo blah | Mail root ) |||| $ |||| ||||the mail is sent, but the calling script (just a subshell in this case) ||||is Stopped. the calling tty is confused and shows control characters. ||||^C is needed to get back to the shell. | |Ok please forget the stupid last message. |I will implement true background support, and document better what |"interactive" really is to us. It will be in v14.10, no backport.
Did that. Got a bit lengthy as we henceforth avoid running in the background at all, which is the only sane thing to do, since *if* we are about to set terminal attributes, there is something going on that requires foreground, say. (Despite possible optimization cases, this not yet.) But pretty straightforward otherwise. |Thanks again for making me aware of the fact that background |handling is completely missing. You share the credit with Chet Ramey of bash/readline now as i was of course very wrong, and he mentioned the "bg" case of which i had not thought of until then (and who knows how long it would have taken until that would have happened, and if through a bug report). Ciao! --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)
