Maybe a little off topic but would it not be better to change the script
#!/bin/sh into #!/bin/bash ?

Just a thought..

Jan Rinze.

On Mon, 2008-06-23 at 10:14 +0200, Mosfet wrote:
> I will check but actually it seems more complicated and finally I have
> 
> changed the link sh->dash into sh->bash because
> 
> removing function keyword is not enough after some scripts use pushd/popd
> 
> and it's not supported either because its a bash thing.
> 
> see here for more info : http://www.lucas-nussbaum.net/blog/?p=274
> 
> 
> 
> 
> 
> 
> 
> 
> 
> On Sun, 22 Jun 2008 20:03:08 +0200, Danny Backx <[EMAIL PROTECTED]>
> 
> wrote:
> 
> > Thanks for the info. I've just committed a change. Can you verify it ?
> 
> > 
> 
> >     Danny
> 
> > 
> 
> > On Sat, 2008-06-21 at 16:36 +0200, Mosfet wrote:
> 
> >> Hi,
> 
> >> 
> 
> >> 
> 
> >> 
> 
> >> I am trying to compile cegcc on a ubuntu 8.04 and build-cegcc.sh doesn't
> 
> >> 
> 
> >> compile.
> 
> >> 
> 
> >> After some research I've learnt that this distro now uses a new shell
> 
> >> 
> 
> >> called dash that is more rescrictive and respect only POSIX.
> 
> >> 
> 
> >> This was a change thas was made for two reasons :
> 
> >> 
> 
> >> 
> 
> >> 
> 
> >> 1) dash is smaller and quicker that old sh
> 
> >> 
> 
> >> 2) it's more strict and it forces dev to write more compliant script
> 
> > that
> 
> >> 
> 
> >> can run on other systems (BSDs)
> 
> >> 
> 
> >> 
> 
> >> 
> 
> >> So when I try the build-cegcc.sh I get the following error : 
> 
> >> 
> 
> >> 
> 
> >> 
> 
> >> ../build-cegcc.sh: 35: Syntax error: "(" unexpected
> 
> >> 
> 
> >> 
> 
> >> 
> 
> >> Actually function is not a posix keyword and not necessary so you should
> 
> >> 
> 
> >> remove it.
> 
> >> 
> 
> >>  
> 
> >> 
> 
> >> 
> 
> >>
> 
> > -------------------------------------------------------------------------
> 
> >> Check out the new SourceForge.net Marketplace.
> 
> >> It's the best place to buy or sell services for
> 
> >> just about anything Open Source.
> 
> >> http://sourceforge.net/services/buy/index.php
> 
> >> _______________________________________________
> 
> >> Cegcc-devel mailing list
> 
> >> Cegcc-devel@lists.sourceforge.net
> 
> >> https://lists.sourceforge.net/lists/listinfo/cegcc-devel
> 
> >> 
> 
> >
> 
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Cegcc-devel mailing list
> Cegcc-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cegcc-devel


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to