From: CSBVAX::MRGATE!@KL.SRI.Com,@wiscvm.wisc.edu:ERIC@UOFT02.BITNET@SMTP 27-JUL-1987 19:34 To: EVERHART Subj: trailing spaces Received: from wiscvm.wisc.edu by KL.SRI.COM with TCP; Mon 27 Jul 87 11:03:51-PDT Received: from UOFT02.BITNET by wiscvm.wisc.edu ; Mon, 27 Jul 87 13:01:53 CDT Date: Mon, 27 Jul 87 13:55 EDT From: Subject: trailing spaces To: info-vax@sri-kl.arpa X-Original-To: info-vax@sri-kl.arpa Here is one way to trim trailing spaces from a file... 1) get the file in eve (edit/tpu name.ext) 2) press the DO key 3) type: TPU EVE$X_TRIMMING := 1 4) type: WRITE FILE 5) press the DO key 6) type: EXIT Note that you must use the WRITE FILE command and not EXIT, as exit will not write the file out again, since the buffer has not been flagged as modified, were as WRITE FILE always writes the file out. If you look at the TPU source file for EVE, you will find a variable (called eve$x_trimming) that is set to false. It is tested in EXIT and WRITE FILE, but is always false, so it does nothing. By setting it to true, it causes EVE to call an otherwise unused routine EVE$TRIM_BUFFER which trims trailing spaces (not tabs or other whitespaces). These routines have all been in TPU since version 3.?? of VMS, but have never been used... There is no reason to believe that they will remain in TPU in future versions but then there is no reason to believe that they will not... For those interested, there is also a routine called EVE$TRIM_LINE... If anyone has the SED/TED editors from Brian Nelson at the U of Toledo, Ohio there is a TRIM command in TED that will also trim the spaces. Hope that helps... Ciao, Eric ( ERIC @ UOFT02.BITNET )