mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-09 02:43:21 +00:00
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:
@@ -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
|
||||
/*) ;;
|
||||
|
||||
Reference in New Issue
Block a user