I want my test script could be run without initial startup scripts.
I found the option "--norc" can not work. The bash version is 4.2.0(2)
my ~/.bashrc contains
echo "in .bashrc"
I want to bash --norc -x test.sh output a content without .bashrc.
$ touch test.sh
$ bash -x test.sh
+ echo 'in .bashrc'
in .bashrc
$ bash --norc -x test.sh
+ echo 'in .bashrc'
in .bashrc
I found this problem only occurs on my Embedded system. The real Linux does not have such problem.