On Mon, Jul 13, 2009 at 02:08:55PM +0200, Ondřej Vašík wrote:
Stefan Assmann wrote:
I was wondering why there's no $HOME/bin directory and $HOME/bin not
mentioned in the $PATH variable. Any particular reason not to have that
$HOME/bin is not on every system and the other default directories in
default PATH are(at least on the most of systems ;) ). However, some
Linux distros do add something as:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
as default - so this dir gets added automatically when does exist.
I'm generally +1 for changing the default that way - as it would not
change anything for users without that directory.
I would only want this at the *end* of the current PATH, not the
beginning, for obvious security reasons.