No It doesn't work:
$ bash
A="EAT"
$ A+="A"
bash: A+=A: command not found
$
From: jetty-users-bounces@xxxxxxxxxxx [mailto:jetty-users-bounces@xxxxxxxxxxx]
On Behalf Of Joakim Erdfelt
Sent: Tuesday, July 09, 2013 5:50 PM
To: JETTY user mailing list
Subject: Re: [jetty-users] XMLFILE Error Jetty.sh
Does this work (on your command line)?
[joakim@lapetus ~]$ A="Eat"
[joakim@lapetus ~]$ A+="A"
[joakim@lapetus ~]$ A+="Gramova"
[joakim@lapetus ~]$ A+="Bits"
[joakim@lapetus ~]$ echo $A
Developer advice, services and support
from the Jetty & CometD experts
On Tue, Jul 9, 2013 at 2:40 PM, Joakim Erdfelt <joakim@xxxxxxxxxxx> wrote:
Unfortunately, the syntax we use...
Isn't that well supported on your version of Bash.
And it is used ALOT in the jetty.sh (not just those 2 lines)
Developer advice, services and support
from the Jetty & CometD experts
On Tue, Jul 9, 2013 at 2:39 PM, Joakim Erdfelt <joakim@xxxxxxxxxxx> wrote:
That is an old version of bash.
Try changing that line (#321) in the jetty.sh to
CONFIGS="$CONFIGS $XMLFILE"
Developer advice, services and support
from the Jetty & CometD experts
On Tue, Jul 9, 2013 at 1:57 PM, Blair Pallopson <blair.pallopson@xxxxxxxxxxxx> wrote:
$ bash --version
GNU bash, version 3.00.16(1)-release (sparc-sun-solaris2.10)
Copyright (C) 2004 Free Software Foundation, Inc.
$ echo $XMLFILE
$ ./jetty.sh check
./jetty.sh: line 321: syntax error near unexpected token `"$XMLFILE"'
./jetty.sh: line 321: ` CONFIGS+=("$XMLFILE")'
as you can see nothing is set in $XMLFILE prior. I haven't modified the $XMLFILE in the .sh script
either.
From:
jetty-users-bounces@xxxxxxxxxxx [mailto:jetty-users-bounces@xxxxxxxxxxx]
On Behalf Of Joakim Erdfelt
Sent: Tuesday, July 09, 2013 4:47 PM
To: JETTY user mailing list
Subject: Re: [jetty-users] XMLFILE Error Jetty.sh
Wow, SunOS 5.1 (aka Solaris 2.1)
The various shell script techniques within the jetty.sh might be too old for your OS.
What is your shell and version?
Also, do you have any values in $XMLFILE before the script runs?
Developer advice, services and support
from the Jetty & CometD experts
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users
|