I have been experimenting with long arguments. The small program below reads an argument and prints it.
program argtest
character*160 carg
call get_command_argument(1,carg,larg)
write(*,1001)carg
1001 format(a160) stop end
When I run it with an argument of length 150 I get the following 1abcdefghijklmnopqrstuvwx2abcdefghijklmnopqrstuvwx3abcdefghijklmnopqrstuvwx 4abcdefghijklmnopqrstuvwx5abcdefghijklmnopqrstuvwx6abcdefghijklmnopqrstuvwx
When the argument is enclosed in ' ', as it would be if it had spaces, the output is truncated 1abcdefghijklmnopqrstuvwx2abcdefghijklmnopqrstuvwx3abcdefghijklmnopqrstuvwx 4abcdefghijklmnopqrstuvwx5abcdefghijklmnopqrstuvwx6ab