Sebastian Nowicki wrote:
It's definitely not a good patch, I just needed to get it fixed quickly so I could use makepkg, and thought I might as well submit it to provoke some discussion. It seems -p does brake, and I assume --forcever does as well. I didn't have enough knowledge of makepkg, nor the time, to tackle the problem properly. I suppose filing a bug report would have been better ;).
I narrowed down the problem to the eval command. It appears eval changes $@ for some reason, as the following shell scripts shows: $ cat test-eval.sh #!/bin/bash echo "\$@ before eval: " echo $@ eval set -- "-p test abcd" echo "\$@ after eval:" echo $@
$ ./test-eval.sh this is a test $@ before eval: this is a test $@ after eval: -p test abcd
It is not eval, it is set. As far as I can tell, it is perfectly normal, that call seems to be made exactly for that purpose: changing the args ($@, $1, etc). And I get the same behavior here anyway.