From 81f791e6cb422acd4595d7d547fa368593874bb6 Mon Sep 17 00:00:00 2001 From: "John S. Urban" Date: Fri, 18 Jun 2021 01:44:23 -0400 Subject: correct for equal sign in flag options --- src/fpm_environment.f90 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/fpm_environment.f90 b/src/fpm_environment.f90 index ef0177f..616af13 100644 --- a/src/fpm_environment.f90 +++ b/src/fpm_environment.f90 @@ -215,8 +215,12 @@ contains write(stderr,'(*(g0,1x))')'*get_command_arguments_stack* error obtaining argument ',i exit elseif(ilength.gt.0)then + !TODO! should escape or double quotes depending on system + !TODO! on some systems might have to do more to requote if(index(arg//' ','-').ne.1)then args=args//quote//arg//quote//' ' + elseif(index(arg,' ').ne.0)then + args=args//quote//arg//quote//' ' else args=args//arg//' ' endif -- cgit v1.2.3