4 ms·
The elephant in the room is -- it's 2006, erm, 2012, and even shell scripts can't be expected to run reliably in lowercase-linux anymore? ... this wouldn't be
by syntaxfree 15y ago
The elephant in the room is -- it's 2006, erm, 2012, and even shell scripts can't be expected to run reliably in lowercase-linux anymore?
... this wouldn't be a problem if Ubuntu hadn't run away with its own default shell...
- KC8ZKF 15y agoWasn't it lowercase-linux that ran away with its own default shell? I mean, the whole confusion starts when "/bin/sh" is a simlink to "bash". And we haven't considered the confusion that Bash, when invoked as "/bin/sh" behaves differently than both the Bourne shell and Bash invoked as "/bin/bash".
- erlkonig 15y agoDue to the same problem you mention, many Linux shell startup scripts are a mess as well. The /etc/profile actually reads in a /etc/bash.bashrc if $BASH is set on Ubuntu, instead of taking the correct approach of letting Bash handles its own startup. One some system (either Redhat or Ubuntu or CentOS, can't remember which) ends up reading in bash's startup scripts in the wrong order - and the wrong number of times. Instead of cramming things in /etc/profile (which really should only be about environment variables, where ~/.bashrc should pick most of them up from the parent process), just having ~/.bash_login read ~/.bashrc solves getting all your interactive bash startup commands into one file (assuming the /etc/skel/.* is used during account creation so users don't have to set that up themselves).