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

Re: Weird set -u error



On Sat, 27 Aug 2022 at 10:27, Greg Wooledge <greg@wooledge.org> wrote:

> Has anyone managed to reproduce the OP's results, either getting
> "interactive" from a bash -c call, or seeing *any* evidence that
> /etc/bash.bashrc or ~/.bashrc is sourced from a bash -c call?

On Debian 11, when I create a test user, login on a console as that
user, and duplicate the recipe provided in the original message[1],
the reported problem does NOT occur:

t220827a@kablamm:~$ cat Makefile.test
SHELL := /bin/bash -u
MAKEFLAGS += --no-builtin-rules
.SUFFIXES:

all:
        echo done
t220827a@kablamm:~$ make -f Makefile.test
echo done
done
t220827a@kablamm:~$ make -f Makefile.test | cat
echo done
done
t220827a@kablamm:~$ cat <(make -f Makefile.test)
echo done
done
t220827a@kablamm:~$

[1] https://lists.debian.org/debian-user/2022/08/msg00578.html


Reply to: