Re: Portability of shell scripts from other *nixes

2012-01-26 Thread Jerry
On Wed, 25 Jan 2012 16:08:07 -0600 Doug Poland articulated: > Hello, > > I'm trying port some shell scripts to FreeBSD that were originally > written on Darwin (OS X). > > The issue I'm having is the shebang line of the scripts in OS X is > #!/bin/sh, and it turns out that is really an instance

Re: Portability of shell scripts from other *nixes

2012-01-25 Thread Karl Vogel
>> On Wed, 25 Jan 2012 16:08:07 -0600, >> "Doug Poland" said: D> I'm trying port some shell scripts to FreeBSD that were originally D> written on Darwin (OS X). The issue I'm having is the shebang line of D> the scripts in OS X is #!/bin/sh, and it turns out that is really an D> instance of bas

Re: Portability of shell scripts from other *nixes

2012-01-25 Thread Devin Teske
On Jan 25, 2012, at 8:13 PM, Chuck Swiger wrote: > Hi-- > > On Jan 25, 2012, at 7:24 PM, Da Rock wrote: >> On 01/26/12 12:55, Doug Poland wrote: >>> This gets me closer, but the scripts behave differently now on OS X. For >>> example, printf's don't output the same. >> >> Try searching on goo

Re: Portability of shell scripts from other *nixes

2012-01-25 Thread mikel king
On Jan 25, 2012, at 5:08 PM, Doug Poland wrote: > Hello, > > I'm trying port some shell scripts to FreeBSD that were originally > written on Darwin (OS X). > > The issue I'm having is the shebang line of the scripts in OS X is > #!/bin/sh, and it turns out that is really an instance of bash, an

Re: Portability of shell scripts from other *nixes

2012-01-25 Thread Chuck Swiger
Hi-- On Jan 25, 2012, at 7:24 PM, Da Rock wrote: > On 01/26/12 12:55, Doug Poland wrote: >> This gets me closer, but the scripts behave differently now on OS X. For >> example, printf's don't output the same. > > Try searching on google and find out exactly what sh MacOSX is using. Then > you'

Re: Portability of shell scripts from other *nixes

2012-01-25 Thread Da Rock
On 01/26/12 12:55, Doug Poland wrote: On Jan 25, 2012, at 18:04 , Chuck Swiger wrote: On Jan 25, 2012, at 2:08 PM, Doug Poland wrote: The issue I'm having is the shebang line of the scripts in OS X is #!/bin/sh, and it turns out that is really an instance of bash, and the code contains some ba

Re: Portability of shell scripts from other *nixes

2012-01-25 Thread Doug Poland
On Jan 25, 2012, at 18:04 , Chuck Swiger wrote: > On Jan 25, 2012, at 2:08 PM, Doug Poland wrote: >> The issue I'm having is the shebang line of the scripts in OS X is >> #!/bin/sh, and it turns out that is really an instance of bash, and >> the code contains some bashisms. On FreeBSD I have bas

Re: Portability of shell scripts from other *nixes

2012-01-25 Thread Warren Block
On Wed, 25 Jan 2012, Doug Poland wrote: I'm trying port some shell scripts to FreeBSD that were originally written on Darwin (OS X). The issue I'm having is the shebang line of the scripts in OS X is #!/bin/sh, and it turns out that is really an instance of bash, and the code contains some bash

Re: Portability of shell scripts from other *nixes

2012-01-25 Thread Chuck Swiger
On Jan 25, 2012, at 2:08 PM, Doug Poland wrote: > The issue I'm having is the shebang line of the scripts in OS X is > #!/bin/sh, and it turns out that is really an instance of bash, and > the code contains some bashisms. On FreeBSD I have bash in > /usr/local/bin/bash. > > Is there an "easy/best

Re: Portability of shell scripts from other *nixes

2012-01-25 Thread Da Rock
On 01/26/12 08:08, Doug Poland wrote: Hello, I'm trying port some shell scripts to FreeBSD that were originally written on Darwin (OS X). The issue I'm having is the shebang line of the scripts in OS X is #!/bin/sh, and it turns out that is really an instance of bash, and the code contains some