I can't find the configuration file that create the dots
I was suggesting that perhaps the
absence of a configuration file causes the unexpected behavior.
If your openelec process is launching from within a
sh or
dash shell rather than bash (I can't guess),
the .bashrc is moot b/c the sh command looks for (expects) path declarations to be placed in
.shinit
.bashrc looks fine, this is the part that tweak the PATH
Code: Select all
# Add sbin directories to PATH. This is useful on systems that have sudo
[ -z"${PATH##*/sbin*}" ] && PATH=$PATH:/sbin:/usr/sbin
Ah, I think understand the problem.
That"looks fine" line performs shell expansion to eval the
${PATH##*/sbin*}
What happened when your .bashrc (or .profile) lacked a prior line containing a PATH= declaration?
Dots happened.
Why? In the absence of a pathstring declaration, the default path was"just a dot")
./