# Set a PATH (!!! impure). export PATH=/bin:/usr/bin:$PATH mkdir $out cat > $out/substituter < \$1/hello ;; esac EOF chmod +x $out/substituter