On Thu, Jan 11, 2024 at 1:03 AM Grisha Levit <grishale...@gmail.com> wrote:
> On Wed, Jan 10, 2024 at 5:33 PM Grisha Levit <grishale...@gmail.com> > wrote: > > I'm not sure this is fixed. In all versions, including 4.2 [...] > > > > $ bash -m -c 'trap /usr/bin/true DEBUG; :|:' > > bash: child setpgid (49581 to 49579): Operation not permitted > > Correction, versions prior to 4.3 did not respect the -m flag at > invocation, > so the command should be: > > bash -c 'set -m; trap /usr/bin/true DEBUG; :|:' > Thanks. I am using a Linux host with kernel version 4.x for cross building. It looks like autoconf is not defining the "PGRP_PIPE" macro variable as there is no check for linux kernel version 4. I don't see the error " child setpgid (4238 to 4232): Operation not permitted" after I backport this patch https://git.savannah.gnu.org/cgit/bash.git/diff/configure.ac?h=bash-4.4-testing&id=3bf257a5d95aa7d98d3da1a24be7b5b301716047 to bash-4.2