From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f9fc5cab1092f383,start X-Google-Attributes: gidfee84,public X-Google-Thread: 1094ba,f9fc5cab1092f383,start X-Google-Attributes: gid1094ba,public From: luis@itzamn.ath.epa.gov (Luis A. Suarez) Subject: fortran carriage control in STDERR Date: 1995/10/31 Message-ID: #1/1 X-Deja-AN: 118376959 sender: usenet@rtpnc.epa.gov ( News Account ) cc: luis@itzamn.ath.epa.gov organization: EPA, Athens lab reply-to: luis@itzamn.ath.epa.gov (Luis A. Suarez) newsgroups: comp.lang.fortran,comp.unix.osf.osf1 Greetings. My question is: how can I make STDERR to honor fortran carriage control information and i/o redirection at the same time? example: consider the program below: program T00 c integer uerr, ios, jj character*(80) q0tmp c uerr = 0 ! STDERR 9110 format ('+', a) ! overprint string do jj = 1, 5 write (uerr, 9110) 'default STDERR' enddo c q0tmp = '/dev/tty' open (unit=uerr, file=q0tmp, status='unknown', iostat=ios, & carriagecontrol='FORTRAN', err=110) do jj = 1, 5 write (uerr, 9110) 'redefined STDERR' enddo c 110 continue stop end The program was compiled with the command: $f77 -u -cross_reference -V -C -extend_source -g2 -warn nouncalled \ -synchronous_exceptions -o t00 t00.f I do not want to use the switch "-vms" because it would introduce more problems. Using the Bourne shell: (Bourne shell) t00 +default STDERR +default STDERR +default STDERR +default STDERR +default STDERR redefined STDERR notice that the default definition of STDERR did not honor overprint (the statement is present in the output five times). the redefinition did overprint (only one statement is present). now: (Bourne shell) t00 > w.del 2>&1 redefined STDERR notice that only the default definition of STDERR was redirected. So, how can I have both carriage control + i/o redirection? Thank you, -- Luis A. Suarez (luis@itzamn.ath.epa.gov)