So, after i have chrooted into /mnt/lfs and am installing binutils, there is a test asking to check whether ptys are set up correctly using
expect -c "spawn ls"
This fails not because there are no available ptys, but because expect cannot find ls.
LS is in /tools/bin, which is in $PATH
I can execute this correctly by typing:
expect -c "spawn /tools/bin/ls"
Where is my mistake?