Angel Tsankov wrote:
I'm building LFS system 6.1.1 (chapter 6) and I get "/usr/bin/mv: No such file or directory" when executing all but the first of the following commands (chapter 6.15. Coreutils-5.2.1):

It might be appropriate to mention that I did NOT execute the "exec /tools/bin/bash --login +h" command in chapter "6.7. Creating the passwd, group, and log Files" or the same command in chapter "6.37. Bash-3.0." Could this be causing the problem?

Yes, the problem is hashing, the shell is remembering where it found things and isn't looking for them afresh. You may have turned off hashing when you entered chroot but when you run a script it runs in a new subshell. You need to turn of hashing in your script. Try putting +h at the end of the first line of your script, something like this.

#!/tools/bin/bash +h

Andy
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to