--- toast 2010/04/04 18:22:09 1.480 +++ toast 2011/09/02 00:55:44 1.481 @@ -2999,11 +2999,12 @@ $found ||= -x(laxpath($_, "ccache")) for split(/:/, $path); return true unless $found; + my $qpath = quote($path); for($cmd, "$cmd.helper") { writescript(path($helperdir, $_), qq[#!/bin/sh # $genby -PATH=$path +PATH=$qpath exec ccache $cmd "\$\@" ]); }