Hello bash developers,

my apologies in advance if I'm overlooking something trivial but I'm
really wondering about the first lines in examples/startup-files/bashrc
(which are copied to Debian's skeleton ~/.bashrc):

case $- in
*i*)    ;;
*)      return ;;
esac

Well, bash terminates sourcing the file if it is invoked
non-interactively.

But, as far as I understand, a non-interactive bash doesn't read
~/.bashrc at all - so shouldn't we just omit them?

Best regards,

Martin

Reply via email to