From owner-freebsd-questions Mon Jan 1 14:56:40 2001 From owner-freebsd-questions@FreeBSD.ORG Mon Jan 1 14:56:38 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from cepheus.azstarnet.com (cepheus.azstarnet.com [169.197.56.195]) by hub.freebsd.org (Postfix) with ESMTP id A7A7237B400 for ; Mon, 1 Jan 2001 14:56:37 -0800 (PST) Received: from azstarnet.com (dhcp440.mc01.dsl.azstarnet.com [169.197.9.184]) by cepheus.azstarnet.com (8.9.3/8.9.3) with ESMTP id PAA09497; Mon, 1 Jan 2001 15:56:33 -0700 (MST) X-Sent-via: StarNet http://www.azstarnet.com/ Sender: castalia@cepheus.azstarnet.com Message-ID: <3A510BBA.9F39B648@azstarnet.com> Date: Mon, 01 Jan 2001 15:59:06 -0700 From: Bradford Castalia Organization: idaeim X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 4.1.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Cc: ernst@jollem.com Subject: Sun JDK-1.3 .java_wrapper patch Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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