Re: Bug#1834: [firstname.lastname@example.org.Uni-Mainz.de: /etc/profile on Debian Linux]
Steve Greenland writes:
>> if [ -f $HOME/$ARCH-linux ]; then
>> mkdir $HOME/bin 2>/dev/null
>I don't think /etc/profile should be creating directories in my home
Agree. They should be created when the account is created, or (IMHO
better) not at all.
>I think if is someone is sufficiently Unix literate to be adding
>their own commands, they can probably make the appropriate
>modifications to PATH in their own .profile.
>Maybe put "PATH=$HOME/bin:$PATH" in the skel version, commented out?
I don't see any harm in including the directory in the PATH even if
it's not there. Or even do
if test -d $HOME/bin; then PATH=$HOME/bin:$PATH;fi