home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / sysv386 / 14039 < prev    next >
Encoding:
Internet Message Format  |  1992-09-04  |  1.1 KB

  1. Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!cc.helsinki.fi!jaakola
  2. From: jaakola@cc.helsinki.fi
  3. Newsgroups: comp.unix.sysv386
  4. Subject: SVR4 batch bug: extra newlines - fixed yet?
  5. Message-ID: <1992Sep4.195721.1@cc.helsinki.fi>
  6. Date: 4 Sep 92 17:57:21 GMT
  7. Sender: news@klaava.Helsinki.FI (Uutis Ankka)
  8. Organization: University of Helsinki
  9. Lines: 28
  10.  
  11. I have discovered the following new "feature" in ICL's SVR4 port and
  12. Unisys's SVR4 port too. Try this:
  13.  
  14. batch <<EOF
  15. cat > bug-results <<EOT
  16. line 1
  17. line 2
  18. line 3
  19. EOT
  20. EOF
  21.  
  22. (you can use at in place of batch)
  23.  
  24. When I run this on ICL and Unisys SVR4 machines, the file bug-results
  25. contains the three lines as expected, BUT THERE ARE SEVERAL EXTRA
  26. NEWLINES - THE FILE bug-results CONTAINS 7 LINES INSTEAD OF JUST THREE!
  27.  
  28. The above works OK in SVR3 and HP-UX.
  29.  
  30. Have you confirmed this behaviour? Is this fixed in new versions? Sorry,
  31. I can't recall the exact versions right now. I have a workaround-kludge
  32. for this, but I would like to do it with the here-document.
  33.  
  34. Is there a FAQ of SVR4 tools bugs? (yes, I have seen the USL kernel bug
  35. FAQ)
  36. --
  37. Juhani Jaakola
  38. jaakola@cc.helsinki.fi
  39.