[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-bash] about --norc
From: |
Peng Yu |
Subject: |
[Help-bash] about --norc |
Date: |
Mon, 10 Dec 2018 09:32:35 -0600 |
Hi,
I am trying to understand this option.
--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.
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
--
Regards,
Peng
- [Help-bash] about --norc,
Peng Yu <=