help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] about --norc


From: Eduardo Bustamante
Subject: Re: [Help-bash] about --norc
Date: Mon, 10 Dec 2018 10:07:13 -0800

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]