Bug#122817: More food for thought
On Sun, Jun 27, 2004 at 12:27:01PM +0200, Bill Allombert wrote:
> That said, I have no objections to /etc/profile.d provide it affects
> only bash and packages do not use it for user-wide settings, but only
> for bash tweaking.
Since .profile and /etc/profile are generic files used by all
bourne-family shells (in Debian, that's at least bash, dash, pdksh,
and arguably zsh), it seems confusing to have /etc/profile.d be
bash-specific.
(I do agree that it shouldn't be used for system-wide settings. I'd
rather it didn't exist at all, in fact. But if it's decided that it
must exist, I think it should be for bourne shells, not just bash.)
[example(s) elided]
> bash-only, could go in /etc/profile
If it's bash-only, it most definitely should not go in /etc/profile
(unless it includes a test to see if the current shell is bash).
In general, I agree with most of what Bill wrote, I just want to
remind people that some of these things are not bash-specific but
bourne-specific. Bashisms do not belong in general bourne-compatible
files/scripts.
--
Chris Waters | Pneumonoultra- osis is too long
xtifr@debian.org | microscopicsilico- to fit into a single
or xtifr@speakeasy.net | volcaniconi- standalone haiku
Reply to: