Aliases in bashrc don't work - everything else
given this ~ / .test file on Ubuntu 12.04:
alias ll='ls -la'
echo "TEST"
when i source ~ / .test i get TEST printed on terminal but alias doesn't work.
Additional information in response to questions:
This is a conditional copy / paste for illustration purposes:
kontrol@smartxffts:~$ cat .test
alias ll='ls -la'
echo "TEST"
kontrol@smartxffts:~$ source .test
TEST
kontrol@smartxffts:~$ ll
ll: command not found
kontrol@smartxffts:~$ alias ll='ls -la'
kontrol@smartxffts:~$ ll
ll: command not found
The alias command works as expected with other accounts on the same system. This user, where he does not work, was created like this:
sudo mkdir /home/kontrol
sudo useradd -u 1001 -b /home -s /bin/bash -G adm,cdrom,sudo,dip,plugdev,lpadmin,sambashare kontrol
sudo chown kontrol:kontrol kontrol/
Still dead end ...!
+3
source to share