I think the basic issue is that Linux uses BASH as /bin/sh.  Supposedly,
bash isn't supposed to allow extensions to Borne Shell syntax when
called as sh, but in my experience it actually does.  Other Unices use
the Borne shell as the Borne shell. ;-)

While bash is backward compatible with Borne shell, Borne is not
backward (forward?) compatible with bash.

I run into this all the time.  I'll take a shot at cleaning up the
script to see if I can get it to run under Borne, and possibly also then
Makefile to create a tar file.  No promises, because sometime (most
notably in libtool compiles), you're just SOL when you try and run under
Borne shell (generally variable space problems).

Sean

Gergo Szakal wrote:
> On Thu, 20 Dec 2007 14:29:50 +0100
> Juan Jose Pablos <[EMAIL PROTECTED]> wrote:
> 
>> Gergo Szakal escribió:
>>> I mean Bourne shell (sh), not Bourne Again Shell (bash). So, the
>>> interpreter should be /bin/sh in the first place. 
>> I do not have a problem with it using debian:
>> [EMAIL PROTECTED]:~/unattended/install/tools$ ls -l /bin/sh
>> lrwxrwxrwx 1 root root 4 2007-04-10 19:38 /bin/sh -> bash
>>
>> I do know about other distributions, so if everyone check theirs and 
>> they are happy I can change it no problem.
> 
> FreeBSD 7.0 beta4:
> 
> [EMAIL PROTECTED]:~> ls -l /bin/sh
> -r-xr-xr-x  1 root  wheel  131432 Dec 17 00:53 /bin/sh
> 
> DragonFlyBSD 1.10.1:
> 
> [EMAIL PROTECTED]:/home/szg> ls -l /bin/sh
> -r-xr-xr-x  1 root  wheel  609892 Oct 13 15:56 /bin/sh
> 
> http://en.wikipedia.org/wiki/Bourne_shell
> http://en.wikipedia.org/wiki/Bash
> 
>>
>> Moreover, one could also hack the prepare script to use not only wget
>>> but the default fetch tools under non-GNU/Linux systems. (ftp and/or
>>> fetch with keeping an eye on $FETCH_CMD[1]). Maybe I can ammend
>>> this and send a patch for 4.8. This further enhances compatibility
>>> with those Unices.
>>   cool!
>> so is 47_RC3 for you right?
> 
> Yeah, but I surely will not be done before the 4.7 release. :-)
> 


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
unattended-devel mailing list
unattended-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to