I tried to include the alias cmds also in the /etc/profile file, but they are not yet recognized after the boot.
As a test, I also tried to declare a variable end export it globally, to see if it was working.
I edited
/etc/profile to this:
Code:
# cat profile
alias ciccio1='/mnt/0/a'
MARK=0008
ENV=/etc/shrc
HOSTNAME=`hostname`
export ENV HOSTNAME MARK
After the boot, that variable is not yet listed in export -p, nor it is echoed by "echo $MARK" .
I tried to include this variable "MARK" also in the path.sh file attached in my previous post:
Code:
# cat path.sh
MARK=008
PATH=/usr/local/bin:/usr/bin:/bin
[ $(id -u) -eq 0 ] && PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH"
export PATH MARK
but it is still not listed in the exported variables (obviously PATH variable is listed!)
This is what is listed in the exported variable list:
Code:
# export -p
export HOME='/'
export PATH='/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin'
export PREVLEVEL='N'
export PWD='/'
export RUNLEVEL='3'
export TERM='linux'
I'm starting to run out of ideas...