[sldev] Re: Re: New Viewer: Second Life 1.18.3 Viewer Available Today!

Sean Dague sean at dague.net
Mon Oct 1 14:28:19 PDT 2007


On Mon, Oct 01, 2007 at 02:52:38PM -0500, Argent Stonecutter wrote:
> On 01-Oct-2007, at 14:42, Sean Dague wrote:
> >It appears that the linux version doesn't work on systems where / 
> >bin/sh
> >isn't bash.  Modifying the secondlife script to start with #!/bin/bash
> >instead of #!/bin/sh fixes things.
> 
> What does the startup script do that's bash-specific? After all, it's  
> possible that some people don't have bash installed at all.

I've not seen a linux distro in the past 5 years that didn't install
bash by default, so I think bash is fine.

The problem line is line 75:

export SL_OPT="`cat gridargs.dat` $@"

that export fails if you actually attempt to pass in arguments
(i.e. -loginuri ....).  It looks like it passes if you don't give it any
args, which is probably how it made it through qa, but it breaks with a:

export: 75: url_you_passed_in: bad variable name

At least on ubuntu where /bin/sh is dash, not bash.

> My experience has been that most scripts written using bash or zsh  
> extensions are just as readable when modified to use standard shell  
> behavior.

Agreed, but I try to avoid shell when possible. :)  I'll leave that as
an exercise for someone else, and just wanted to note my work around on
list for any folks that could use the information.

     -Sean

-- 
__________________________________________________________________

Sean Dague                                       Mid-Hudson Valley
sean at dague dot net                            Linux Users Group
http://dague.net                                 http://mhvlug.org

There is no silver bullet.  Plus, werewolves make better neighbors
than zombies, and they tend to keep the vampire population down.
__________________________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.secondlife.com/pipermail/sldev/attachments/20071001/24f527f9/attachment.pgp


More information about the SLDev mailing list