darcs patch: Pass additional parameters in generated shell scripts

Ian Lynagh igloo at earth.li
Sun May 16 15:30:25 EDT 2010


On Sun, May 16, 2010 at 08:17:26PM +0200, Matthias Kilian wrote:
> 
> -         ++ quote path ++ concatMap (\arg -> ' ':quote arg) args ]
> +         ++ unwords (map quote $ path : args) ++ " \"$@\""]

This looks liks it ought to be " ${1+\"$@\"}" rather than " \"$@\"", to
correctly handle the case where there are no additional parameters.


Thanks
Ian



More information about the cabal-devel mailing list