mirror of
https://git.freebsd.org/ports.git
synced 2025-05-22 03:45:17 -04:00
The -CURRENT /bin/expr command may get confused when matching regexps against strings that begin with "-", because they are interpreted as command flags. Using "--" as the first flag solves this, but it will in turn confuse -STABLE expr (syntax error), so it looks like there's no common way to do it (that I can think of).
14 lines
622 B
Diff
14 lines
622 B
Diff
|
|
$FreeBSD: /tmp/pcvs/ports/java/netbeans55/files/Attic/bin_runide.sh.diff,v 1.1 2003-06-07 19:55:11 olgeni Exp $
|
|
|
|
--- bin/runide.sh.orig Mon Jun 2 11:23:48 2003
|
|
+++ bin/runide.sh Mon Jun 2 11:26:50 2003
|
|
@@ -157,7 +157,7 @@
|
|
|
|
-hotspot|-client|-server|-classic|-native|-green) thread_flag=$1;;
|
|
-J-hotspot|-J-client|-J-server|-J-classic|-J-native|-J-green) thread_flag=`expr $1 : '-J\(.*\)'`;;
|
|
- -J*) jopt=`expr "$1" : '-J\(.*\)'`; jargs="$jargs \"$jopt\"";;
|
|
+ -J*) jopt=`expr -- "$1" : '-J\(.*\)'`; jargs="$jargs \"$jopt\"";;
|
|
*) args="$args \"$1\"" ;;
|
|
esac
|
|
shift
|