cat > $LFS/qlnx/bin/which << "EOF" #!/qlnx/bin/bash type -pa "$@" | head -n 1 ; exit ${PIPESTATUS[0]} EOF chmod -v 755 $LFS/qlnx/bin/which