From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f9fc5cab1092f383 X-Google-Attributes: gidfee84,public X-Google-Thread: 1094ba,f9fc5cab1092f383 X-Google-Attributes: gid1094ba,public From: lionel@quark.enet.dec.com (Steve Lionel) Subject: Re: fortran carriage control in STDERR Date: 1995/11/03 Message-ID: <47de6f$p0r@zk2nws.zko.dec.com>#1/1 X-Deja-AN: 118553238 distribution: world references: organization: Digital Equipment Corporation, Nashua NH reply-to: lionel@quark.enet.dec.com (Steve Lionel) newsgroups: comp.lang.fortran,comp.unix.osf.osf1 In article , luis@itzamn.ath.epa.gov (Luis A. Suarez) writes: |>My question is: how can I make STDERR to honor fortran carriage control |>information and i/o redirection at the same time? Luis had also sent this question to me by mail. My answer was as follows: The answer is yes and no. The "file" name must be omitted in order to redirect the output to STDERR. And indeed this program works when the file name is omitted; however, the output file will appear as follows: +default STDERR +default STDERR +default STDERR +default STDERR +default STDERR redefined STDERR^Mredefined STDERR^Mredefined STDERR^MredefinedSTDERR^Mredefined STDERR^M Note that the carriage controls (^M) are written to the file as raw characters as the file does not know if/how to format it. If this same file was then output to a terminal ("cat w.del") it would then appear as you wish ("redefined STDERR" would be overstruck). -- Steve Lionel Mail: lionel@quark.enet.dec.com DEC Fortran Development WWW: http://www.digital.com/info/slionel.html Digital Equipment Corporation CompuServe: 75263,3001 110 Spit Brook Road, ZKO2-3/N30 Nashua, NH 03062-2698 "Free advice is worth every cent" For information on DEC Fortran 90, see http://www.digital.com/info/hpc/f90/