Richard Zidlicky whispered:
> nice, you have got pretty far :))
>
> > if [ $? -eq 0 ] ; then true; else exit 1; fi; \
> > mv libgcc1.o ${name}.o; \
> > qdos-ar rc tmplibgcc1.a ${name}.o; \
> > rm -f ${name}.o; \
> > done
> > _mulsi3
> > shift: can't shift that many
> > /usr/local/qdos/bin/as: 54: Syntax error: Bad substitution
> ^^^^^^^^^^^^^^^^^^^^^^
>
> yet another problem with that script, what is your line 54?
> I have changed my line 53 to
> parts=`echo $src | sed -e 'y / '`
> Which sh/bash version? Try adding 'echo "$*"' and similar
> debugging statements into the loop to find out where that
> 'shift' error message comes from.
>
> Richard
>
53 parts=`echo $src | sed -e 'y/\// /'`
54 if [ "${parts:0:1}" = " " ] ; then
55 base="/"
56 else
57 base="./"
58 fi
bash-2.05a
I'm wondering about the "parts:0:1" should it be "parts:1:1"? I'll try that and let
you know how it goes.
Thanks for the reply Richard,
Regards,
Peter
Peter S Tillier [EMAIL PROTECTED]
[EMAIL PROTECTED]
Opinions expressed are my own and not necessarily
those of my employer.