tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: sh(1) vs. ksh(1)
At 18:05 Uhr +0200 23.10.2008, Hauke Fath wrote:
From <http://issues.sxemacs.org/show_bug.cgi?id=89>:
[hf@Gstoder] /<2>sxemacs/sxemacs-22.1.9 > /bin/sh ./config.sub sun4
sparc-sun-sunos4.1.1
[hf@Gstoder] /<2>sxemacs/sxemacs-22.1.9 > /bin/ksh ./config.sub sun4
"./config.sub" not found
[hf@Gstoder] /<2>sxemacs/sxemacs-22.1.9 > /usr/pkg/bin/bash ./config.sub sun4
sparc-sun-sunos4.1.1
[hf@Gstoder] /<2>sxemacs/sxemacs-22.1.9 >
The most important bits were missing:
<script>
# Expect to find configfsf.sub in the same directory as this config.sub
configfsf_sub="`echo \"$0\" | sed 's/config.sub$/configfsf.sub/'`"
if test "$configfsf_sub" = "$0"; then
echo "Cannot derive configfsf.sub from $0" 1>&2
exit 1
fi
if test -f "$configfsf_sub"; then
:
else
echo "$configfsf_sub not found" 1>&2
exit 1
fi
</script>
[hf@Gstoder] /<2>sxemacs/sxemacs-22.1.9 > ls -l config.sub
-rwxr-xr-x 1 hf wheel 4072 Oct 23 17:56 config.sub
[hf@Gstoder] /<2>sxemacs/sxemacs-22.1.9 > /bin/ksh -x ./config.sub sun4
+ echo "./config.sub"
+ sed s/config.sub$/configfsf.sub/
+ configfsf_sub="./config.sub"
+ test "./config.sub" = ./config.sub
+ test -f "./config.sub"
+ echo "./config.sub" not found
+ >&2
"./config.sub" not found
+ exit 1
[hf@Gstoder] /<2>sxemacs/sxemacs-22.1.9 >
hauke
--
The ASCII Ribbon Campaign Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
Respect for open standards Ruf +49-6151-16-3281
Home |
Main Index |
Thread Index |
Old Index