home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!spool.mu.edu!agate!ames!news.hawaii.edu!lee
- From: lee@Hawaii.Edu (Greg Lee)
- Subject: "system()" bug?
- Message-ID: <1992Nov8.132852.16951@news.Hawaii.Edu>
- Sender: root@news.Hawaii.Edu (News Service)
- Nntp-Posting-Host: uhunix.uhcc.hawaii.edu
- Organization: University of Hawaii
- X-Newsreader: TIN [version 1.1 PL6]
- Date: Sun, 8 Nov 1992 13:28:52 GMT
- Lines: 18
-
-
- Does anyone else have this problem? Output
- to the screen gets lost when the system() call
- involves a pipe. The following little program
- "bare" exhibits the problem. When compiled,
- "bare >temp" works ok, but "bare" produces
- no output. The problem appeared somewhere between
- version 0.96 and 0.98.1, and it's still there with
- 0.98.3, libc 4.2, gcc ss-921027.
- -----------------file bare.c-------------
- #include <stdio.h>
-
- main()
- {
- system("cat bare.c | less ");
- }
- --
- Greg Lee <lee@uhunix.uhcc.hawaii.edu>
-