On Mon, Dec 10, 2018 at 7:40 AM Peng Yu <address@hidden> wrote:
(...)
> --norc Do not read and execute the personal initialization file
> ~/.bashrc if the shell is **interactive**. This option is on by default
> if the shell is invoked as sh.
Emphasis mine.
> My test case indicates that in all the three 3 invocations, --norc is
> enabled. Is it so? Thanks.
>
> bash ./script.sh
> bash -c 'echo x'
> bash <<EOF
> echo x
> EOF
None of these examples invokes an INTERACTIVE shell.