home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / linux / 16039 < prev    next >
Encoding:
Text File  |  1992-11-08  |  908 b   |  31 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!spool.mu.edu!agate!ames!news.hawaii.edu!lee
  3. From: lee@Hawaii.Edu (Greg Lee)
  4. Subject: "system()" bug?
  5. Message-ID: <1992Nov8.132852.16951@news.Hawaii.Edu>
  6. Sender: root@news.Hawaii.Edu (News Service)
  7. Nntp-Posting-Host: uhunix.uhcc.hawaii.edu
  8. Organization: University of Hawaii
  9. X-Newsreader: TIN [version 1.1 PL6]
  10. Date: Sun, 8 Nov 1992 13:28:52 GMT
  11. Lines: 18
  12.  
  13.  
  14. Does anyone else have this problem?  Output
  15. to the screen gets lost when the system() call
  16. involves a pipe.  The following little program
  17. "bare" exhibits the problem.  When compiled,
  18. "bare >temp" works ok, but "bare" produces
  19. no output.  The problem appeared somewhere between
  20. version 0.96 and 0.98.1, and it's still there with
  21. 0.98.3, libc 4.2, gcc ss-921027.
  22. -----------------file bare.c-------------
  23. #include <stdio.h>
  24.  
  25. main()
  26. {
  27.     system("cat bare.c | less ");
  28. }
  29. --
  30. Greg Lee <lee@uhunix.uhcc.hawaii.edu>
  31.