why my bash doesn't work correctly?
There should be no error when I compile Bash and other softwares.
After I finish the preparing part, I use the below command to change the root:
chroot $LFS /static/bin/env -i \
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
However, to my surprise, there will be such an error like 'bash: cd: static/bin/ls: No such file or directory' when I input most of commands.
But when I type /static/bin/l , and type the key TAB, the bash shows the right files
ld ln locate logname ls ls_tmp
And I type /static/bin/ls, there is still the same error.
I have no name!:/# /static/bin/ls
bash: /static/bin/ls: No such file or directory
What is the matter? Is there something wrong with my Bash. I have compile it twice.
And the more surprising is that there is no error when I input the command such as 'chroot' and 'env'.
I really don't know what is the problem and what should I do.