lix/tests/substituter2.sh

19 lines
216 B
Bash
Raw Normal View History

# Set a PATH (!!! impure).
export PATH=/bin:/usr/bin:$PATH
mkdir $out
cat > $out/substituter <<EOF
#! /bin/sh -ex
echo \$*
case \$* in
*)
exit 1
;;
esac
EOF
chmod +x $out/substituter