I am using LFS 6.5 on a CentOS 5.4 host. Everything goes smoothly until I get to 062-creatingdirs
Apparently this is the first script that uses the newly compiled tools among them /tools/bin/bash This is where bash begins to fail on command substitutions of the form $(uname -m) with errors of the form "command substitution: line 5: syntax error near unexpected token `)'". Changing from $(uname -m) to `uname -m` corrects this problem. > From then on it fails on ALL similar commands. Which is very miserable when you get into 076-util-linux-ng where similar constructs are used in the configure script with some 20000+ lines!! In order to test the new bash I created a test file: #!/home/ank/o-box/tools/bin/bash DD=$(uname -m) echo $DD which fails with /tmp/tt: command substitution: line 3: syntax error near unexpected token `)' /tmp/tt: command substitution: line 3: `uname -m)' This runs nicely with `uname -m`. Same behavior exists with the .../bin/bash (instead of ../tools/bin/bash). Instead the same test file run with the host bash: #!/bin/bash DD=$(uname -m) echo $DD come back nicely with i686 Any ideas? AM I doing something wrong? Thank you Andreas -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page