Marcus,
That's surprising, I always thought the use of '^' was fairly standard in
regular expressions.
Okay, just take off the '^' I don't think there'll be many other "*Darwin"
OSs out there in the next few years!
Stuart.
On Thursday, July 12, 2001, at 01:14 pm, Marcus Crafter wrote:
> Hi Stuart,
>
>> Can I suggest the following patch to bin/ant for Mac OS X at the moment
>> (replacing last line):
>>
>> if [ $( expr $OSTYPE : '^[dD]arwin.*' ) > 0 ]; then
>> $JAVACMD -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}"
>> $ANT_OPTS org.apache.tools.ant.Main "$@"
>> else
>> $JAVACMD -classic -classpath "$LOCALCLASSPATH"
>> -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main "$@"
>> fi
>>
>> On Mac OS X 10.0.4 the value of OSTYPE in the /bin/sh shell appears to be
>> "darwin1.0", but it is "Darwin1.3" in Bash and "macos" in csh and tcsh!
>
> With this patch in place I'm receiving the following on my linux
> system:
>
> fztig938[/home/crafterm/workarea/xml-cocoon2]:31>bash build.sh
>
> Apache Cocoon 2 Build System
> ----------------------------
> expr: warning: unportable BRE: `^[dD]arwin.*': using `^' as the first
> character of the basic regular expression is not portable; it is being
> ignored
> Buildfile: build.xml
>
> init:
>
> Is the ^ important/needed ? Should we remove it ?
>
> Cheers,
>
> Marcus
>
> --
> .....
> ,,$$$$$$$$$, Marcus Crafter
> ;$' '$$$$: Computer Systems Engineer
> $: $$$$: Open Software Associates GmbH
> $ o_)$$$: 82-84 Mainzer Landstrasse
> ;$, _/\ &&:' 60327 Frankfurt Germany
> ' /( &&&
> \_&&&&' Email : [EMAIL PROTECTED]
> &&&&. Business Hours : +49 69 9757 200
> &&&&&&&:
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
-------------------------------------------------------------------------
Stuart Roebuck [EMAIL PROTECTED]
Lead Developer Java, XML, MacOS X, XP, etc.
ADOLOS <http://www.adolos.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]