Edit report at https://bugs.php.net/bug.php?id=65088&edit=1
ID: 65088 Comment by: glen at delfi dot ee Reported by: stolen dot data dot net at gmail dot com Summary: Generated configure script is malformed on OpenBSD Status: Closed Type: Bug Package: Compile Failure Operating System: OpenBSD 5.3 (possibly all BSDs) PHP Version: 5.5.0 Assigned To: aharvey Block user comment: N Private report: N New Comment: this is actually old bug going back to 2006, fixed in pld, but seems never reached php.net http://git.pld-linux.org/? p=packages/php.git;a=commitdiff;h=0c510837964981255f8f3bdb0bd9473d404770a1 pld uses (used) pdksh as well at that time Previous Comments: ------------------------------------------------------------------------ [2013-06-23 18:07:42] ahar...@php.net Automatic comment on behalf of aharvey Revision: http://git.php.net/?p=php-src.git;a=commit;h=2531307be601b95a4aac38dc26dd2d27112b9291 Log: Fix bug #65088 (Generated configure script is malformed on OpenBSD). ------------------------------------------------------------------------ [2013-06-23 18:01:03] ahar...@php.net Editing the summary so that the news entry is more obvious. ------------------------------------------------------------------------ [2013-06-23 17:41:42] ahar...@php.net Terrific; thanks for that. I'll run a couple more tests quickly, and assuming they're OK, will push this. ------------------------------------------------------------------------ [2013-06-23 16:32:13] stolen dot data dot net at gmail dot com Backslash-escaping the quotes seems to be the issue, turning the quotes into literals causing broken substitution on both sh, ksh and bash. sdata@antikythera$ cd /home/"sdata" && pwd /home/sdata sdata@antikythera$ cd /home/\"sdata\" && pwd ksh: cd: /home/"sdata" - No such file or directory ------------------------------------------------------------------------ [2013-06-23 16:14:25] stolen dot data dot net at gmail dot com Yes, I understand the quotation has to be reworked rather than removed ("quick'n'dirty") - aharvey's supplied patch that changed the manner of quotation solved the problem, by the way. No modifications have been done to my sh binary, and same goes for my environment with the exception of setting LC_CTYPE to get proper UTF-8 support. The problem is identical whether I run the vanilla configure or the rebuilt one, without arguments, or with the arguments I use for my PHP build. I reported this problem already with PHP 5.4.0 on OpenBSD 5.0 - the PHP 5.3 branch did not show this problem on OpenBSD 5.0 or any other earlier version that I've been running for years, all of which use an unmodified environment. Quoting portion of a path - cd /some/path/"somewhere" - works just fine straight off the shell with sh, ksh and bash, just like expected. I tested this already over a year ago when when I found this issue the first time. Why it fails when executed inside the configure script confused me already back then. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=65088 -- Edit this bug report at https://bugs.php.net/bug.php?id=65088&edit=1