Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Jan 2001 15:59:06 -0700
From:      Bradford Castalia <Castalia@azstarnet.com>
To:        freebsd-questions@FreeBSD.ORG
Cc:        ernst@jollem.com
Subject:   Sun JDK-1.3 .java_wrapper patch
Message-ID:  <3A510BBA.9F39B648@azstarnet.com>

next in thread | raw e-mail | index | archive | help
Just F.Y.I.:

Ernst de Haan submitted (18 July, 2000) a patch to the Sun JDK-1.3 .java_wrapper
script file that changes /usr/bin/expr to /usr/compat/linux/usr/bin/expr. I have
found that /bin/expr will work just fine if the '/' in the regex of the second use
of expr is escaped. Thus

*** .java_wrapper.orig  Mon Sep 18 18:05:19 2000
--- .java_wrapper       Sat Dec 30 18:14:46 2000
***************
*** 31,38 ****
  # Resolve symlinks. See 4152645.
  while [ -L "$PRG" ]; do
      ls=`/bin/ls -ld "$PRG"`
!     link=`/usr/bin/expr "$ls" : '.*-> \(.*\)$'`
!     if /usr/bin/expr "$link" : '/' > /dev/null; then
        PRG="$link"
      else
        PRG="`/usr/bin/dirname $PRG`/$link"
--- 31,38 ----
  # Resolve symlinks. See 4152645.
  while [ -L "$PRG" ]; do
      ls=`/bin/ls -ld "$PRG"`
!     link=`/bin/expr "$ls" : '.*-> \(.*\)$'`
!     if /bin/expr "$link" : '\/' > /dev/null; then
        PRG="$link"
      else
        PRG="`/usr/bin/dirname $PRG`/$link"

-- 

Bradford Castalia                       Castalia@azstarnet.com
Systems Analyst                         http://azstarnet.com/~castalia
idaeim                                  520-624-6629

"Build an image in your mind, fit yourself into it."
    The Log of Cyradis, Seeress of Kell.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A510BBA.9F39B648>