config.sub quoting issue

Sebastian Freundt hroptatyr at gna.org
Fri Oct 24 11:28:43 CEST 2008


Hey there,
we've had a report regarding one of your build chain scripts, config.sub.

Basic facts: NetBSD4, login shell is ksh, macharchos: sparc-sun-sunos4.1.1

Basically this is what happens:

[hf at Gstoder] /<2>sxemacs/sxemacs-22.1.9 > /bin/sh ./config.sub sun4
sparc-sun-sunos4.1.1
[hf at Gstoder] /<2>sxemacs/sxemacs-22.1.9 > /bin/ksh ./config.sub sun4
"./config.sub" not found
[hf at Gstoder] /<2>sxemacs/sxemacs-22.1.9 > /usr/pkg/bin/bash ./config.sub sun4
sparc-sun-sunos4.1.1
[hf at Gstoder] /<2>sxemacs/sxemacs-22.1.9 >

we nailed it down to a quoting issue, config.sub:44

configfsf_sub="`echo \"$0\" | sed 's/config.sub$/configfsf.sub/'`"

our fix is to use the more quoting-tolerant $(...) syntax:
configfsf_sub=$(echo "$0" | sed 's/config.sub$/configfsf.sub/')

Complete bug history is at: http://issues.sxemacs.org/show_bug.cgi?id=89


kthxbye
Sebastian



More information about the gmp-bugs mailing list