[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
First lines of examples/startup-files/bashrc
From: |
Martin Schulte |
Subject: |
First lines of examples/startup-files/bashrc |
Date: |
Wed, 8 Apr 2020 23:42:41 +0200 |
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
- First lines of examples/startup-files/bashrc,
Martin Schulte <=