On Tue, 2007-12-11 at 23:20 +0100, Thorsten Scherler wrote:
> On Thu, 2007-11-29 at 12:08 +0000, solprovider apache.org wrote:
> > Author: solprovider
> > Date: Thu Nov 29 04:08:11 2007
> > New Revision: 599401
> >
> > URL:
http://svn.apache.org/viewvc?rev=599401&view=rev
> > Log:
> > Fixed Bug 43748. Replaced bash-specific code with
POSIX sh acceptable code.
> >
> > Modified:
> > lenya/branches/BRANCH_1_2_X/lenya.sh
> >
> > Modified: lenya/branches/BRANCH_1_2_X/lenya.sh
> > URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_1_2
_X/lenya.sh?rev=599401&r1=599400&r2=599401&view=
diff
> >
============================================================
==================
> > --- lenya/branches/BRANCH_1_2_X/lenya.sh
(original)
> > +++ lenya/branches/BRANCH_1_2_X/lenya.sh Thu Nov
29 04:08:11 2007
> >  -91,8 +91,7 
> > fi
> >
> > # Set Lenya home to directory containing this
script
> > -ENDSLASH=`expr match "$0" '.*/'`
> > -LENYA_HOME=`expr substr "$0" 1
$ENDSLASH`
> > +LENYA_HOME=${0%/*}
>
> Can you explain this change?
>
> If I open a shell and type
> echo ${0%/*}
>
> I get
> bash
>
> I do not understand.
If I do this on the zone server I get:
-bash
http://svn.apache.org/viewvc/lenya/branches/BR
ANCH_1_2_X/lenya.sh?r1=473841&r2=589735&pathrev=5994
01&diff_format=h
For now I removed the lines 93 - 97 and replaced them with
the ones from
r473841. Which seems to work fine.
salu2
>
> salu2
> > cd $LENYA_HOME
> > LENYA_HOME=`pwd -P`
> >
> >
> >
> >
> >
------------------------------------------------------------
---------
> > To unsubscribe, e-mail: commits-unsubscribe lenya.apache.org
> > For additional commands, e-mail: commits-help lenya.apache.org
> >
--
Thorsten Scherler
thorsten.at.apache.org
Open Source Java consulting, training
and solutions
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe lenya.apache.org
For additional commands, e-mail: dev-help lenya.apache.org
|