tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: recent x changes, solaris compiler-options-with-spaces,



On Tue, Jun 05, 2012 at 05:03:20PM +0000, David Holland wrote:
> On Tue, Jun 05, 2012 at 05:38:09PM +0100, David Laight wrote:
>  > Would be useful to know what as_echo is actually set to on the
>  > failing systems.
>  > 
>  > (I just built it on amd64 current without any issues.)
> 
> The fix for the sh bug in question is -r1.85 of expand.c. It was
> pulled up to netbsd-5 and predates netbsd-6. It would be interesting
> to check if a -current sh with that change reverted fails.

Is that shell bug relevant?
It was about issues stripping the trailing '\n' from command
substitutions. In this case the text written into the pipe to
sed must have two lines in it, and the problem is in the middle.

One test would be to try replacing the sed command with a 'tr' command.
possibly (untested):
as_tr_sh="eval sed 'y%*+%pp%' | tr -c '$as_cr_alnum' '_'"
or just:
as_tr_sh="eval tr -c '$as_cr_alnum' '_'"

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index