Просмотр исходного кода

* mc-test: When executing the "." command, always generate a
config file name containing a slash, as otherwise the config
file would be searched in the $PATH.

Roland Illig 20 лет назад
Родитель
Сommit
d62267c199
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      maint/mc-test

+ 1 - 1
maint/mc-test

@@ -84,7 +84,7 @@ EOF
 
 while test $# -ne 0; do
 	case "$1" in
-		-config)		shift; . "$1"; shift;;
+		-config)		shift; case "$1" in /*) . "$1";; *) . "./$1";; esac; shift;;
 		-basedir)		shift; mc_basedir="$1"; shift;;
 		-cvs-repository)	shift; mc_cvs_repository="$1"; shift;;
 		-cvs-module)		shift; mc_cvs_module="$1"; shift;;