Hi Rob and Mike,

Thanks for the report and investigation.

I'm probably to blame for this problem. I'm pretty much clueless when it comes 
to bash variations; I always have to look up some reference to write if 
statements ;) I found the -a test here: 
http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_01.html - and assumed it 
was standard. Is there an alternative ?

-g

On 27 Feb 2011, at 11:19, Rob Blake wrote:

> Mike,
> 
> Seems that it is a shell issue with setenv.sh, not actually 
> magnolia_control.sh. When you run magnolia_control.sh it actually invokes 
> startup.sh which in turn invokes setenv.sh.
> 
> If you look inside setenv.sh, there is the following:
> 
> if [ -a "${CURDIR}/magnolia_banner.txt" ] ; then
>   cat ${CURDIR}/magnolia_banner.txt
> fi
> 
> As far as I'm aware the "-a" option is not a valid file test parameter in 
> Dash, which is the shell invoked by /bin/sh in Ubuntu 10.10. You get the same 
> problem if you explicitly invoke the startup script with another shell such 
> as Bash, which doesn't have the -a option either.
> 
> I don't think it is causing any problems, as it is only trying to display the 
> Magnolia Banner text.
> 
> Assuming I'm right, you might want to raise this as an issue on the Magnolia 
> Jira instance so that it can be fixed by the Magnolia team.
> 
> cheers,
> 
> Rob
> 
> On Sun, Feb 27, 2011 at 1:33 AM, Mike Stoddart <[email protected]> wrote:
> 
> I downloaded the latest Magnolia onto Ubuntu 10.10 but when I run startup.sh 
> I get an error:
> 
> [: 15: -a: unexpected operator
> 
> Did I forget to install a package? I have Tomcat installed and I'm sure I 
> installed everything that is required. Any suggestions appreciated.
> 
> Thanks
> Mike
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
> 
> 



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to