about summary refs log blame commit diff
path: root/tests/substituter2.sh
blob: 84925b94405f316fa6cdf9737db25fac5056397b (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                               
      
              





                         
# 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