Avoid another problem with expr on FreeBSD.

Branches: main, 10.04

Avoid another problem with expr on FreeBSD.

scripts/parse_ml_options.sh-subr.in:
	Avoid invoking expr with a first argument that has a leading
	minus sign.
This commit is contained in:
Julien Fischer
2010-12-02 03:36:38 +00:00
parent d40a8a38f6
commit 978defbde8

View File

@@ -373,7 +373,7 @@ EOF
shift
;;
-R*)
dir="` expr $1 : '-R\(.*\)' `"
dir="` expr X$1 : 'X-R\(.*\)' `"
case $leave_shlib_dirs_relative in false)
case "$dir" in
/*) ;;