diff options
Diffstat (limited to 'tests/substituter2.sh')
-rwxr-xr-x | tests/substituter2.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/substituter2.sh b/tests/substituter2.sh new file mode 100755 index 000000000..84925b944 --- /dev/null +++ b/tests/substituter2.sh @@ -0,0 +1,18 @@ +# 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 + |