Re: pdksh wrong strips quotes in shell substs

2013-03-03 Thread Philip Guenther
The fix for this is (finally) committed for post-5.3. Sorry about the delay. Philip Guenther

Re: pdksh wrong strips quotes in shell substs

2012-08-14 Thread Philip Guenther
On Sun, Aug 12, 2012 at 12:43 PM, Alexander Polakov p...@sdf.org wrote: Ok, second attempt Nice. One fix; @@ -342,7 +346,10 @@ PUSH_STATE(STBRACE); } else {

Re: pdksh wrong strips quotes in shell substs

2012-08-12 Thread Alexander Polakov
* Philip Guenther guent...@gmail.com [120812 18:50]: On Sun, 12 Aug 2012, Alexander Polakov wrote: Below is an expansion of your diff for tests/unclass2.t to cover the cases discussed in this thread plus a couple others. As for how to get the fix to cover all those cases: the heredoc case

Re: pdksh wrong strips quotes in shell substs

2012-08-11 Thread Alexander Polakov
* Philip Guenther guent...@gmail.com [120810 00:45]: On Thu, Aug 9, 2012 at 5:31 AM, Mark Kettenis mark.kette...@xs4all.nl wrote: Date: Thu, 9 Aug 2012 11:30:13 +0200 From: Landry Breuil lan...@rhaalovely.net ... in the context of https://bugzilla.mozilla.org/show_bug.cgi?id=781461 i've

Re: pdksh wrong strips quotes in shell substs

2012-08-11 Thread Philip Guenther
On Sun, 12 Aug 2012, Alexander Polakov wrote: Nobody cares, so here's my attempt. I haven't run it though a world/ports build because of slow hardware on my hands right now. Index: lex.c === RCS file: /cvs/src/bin/ksh/lex.c,v

pdksh wrong strips quotes in shell substs

2012-08-09 Thread Landry Breuil
Hi, in the context of https://bugzilla.mozilla.org/show_bug.cgi?id=781461 i've stumbled upon the following issue: (our pdksh) $cat EOF echo ${FOO:+'blah'aa} EOF echo blahaa bash-4.2# FOO=1 bash-4.2# cat EOF echo ${FOO:+'blah'aa} EOF echo 'blah'aa Apparently the ksh from solaris, hpux and

Re: pdksh wrong strips quotes in shell substs

2012-08-09 Thread Mark Kettenis
Date: Thu, 9 Aug 2012 11:30:13 +0200 From: Landry Breuil lan...@rhaalovely.net List-Owner: mailto:owner-t...@openbsd.org X-Loop: tech@openbsd.org Sender: owner-t...@openbsd.org X-XS4ALL-DNSBL-Checked: mxdrop222.xs4all.nl checked 192.43.244.163 against DNS blacklists X-CNFS-Analysis: v=2.0

Re: pdksh wrong strips quotes in shell substs

2012-08-09 Thread Philip Guenther
On Thu, Aug 9, 2012 at 5:31 AM, Mark Kettenis mark.kette...@xs4all.nl wrote: Date: Thu, 9 Aug 2012 11:30:13 +0200 From: Landry Breuil lan...@rhaalovely.net ... in the context of https://bugzilla.mozilla.org/show_bug.cgi?id=781461 i've stumbled upon the following issue: (our pdksh) $FOO=1