------- Comment #3 from motiz at 012 dot net dot il 2009-12-20 19:25 -------
You are right.
However, it was working on Redhat with gcc 4.3.?.
Now I am working on ubuntu 9.10 with gcc-4.4.1 and it did not work, unless I
used the explicit path.
Thank you very much
Moti
(In reply to comment #1)
> Try with a proper path, i.e. without the '~'. Replacement of special
> characters
> or wildcards is done on the shell level, not within the application.
>
> To place a file in the home directory of the user, use the intrinsic
> GET_ENVIRONMENT_VARIABLE to get the value of HOME:
>
> CHARACTER(len=255) :: homedir
> CALL GET_ENVIRONMENT_VARIABLE("HOME", homedir)
> OPEN(unit=101, file=TRIM(homedir) // '/Moti.txt', status='REPLACE')
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42443