home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!cs.utexas.edu!uwm.edu!spool.mu.edu!agate!linus!progress!bedford.progress.COM!tucker
- From: tucker@bedford.progress.COM (Kyle Tucker)
- Subject: read not reading
- Message-ID: <1993Jan11.210839.9498@progress.com>
- Sender: tucker@bahrain (Kyle Tucker)
- Nntp-Posting-Host: bahrain
- Reply-To: tucker@bedford.progress.COM
- Organization: Progress Software Corp.
- Date: Mon, 11 Jan 1993 21:08:39 GMT
- Lines: 25
-
- Perhaps I'm losing it, but I swear this is what I see happening.
-
- cat file | while read LINE
- do
- if [ certain things are true about $LINE ]
- then
- do some stuff based on values in $LINE
- fi
- done
-
- Now, if I do "some stuff" , which is a lot of text hacking, etc, but
- absolutely no exits,breaks,continues,etc, the read command sees no
- more lines in the file. If I don't do "some stuff", then it reads next
- line fine. sh -x shows the read is actually occuring, but ending as
- if it sees EOF. Has this been seen before? This also occurs if the reads
- are done through standard input.
-
- Any help/experience with this greatly appreciated!
-
- - Kyle
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Kyle Tucker - Email Administrator | Progress Software Corporation
- tucker@bedford.progress.com | 14 Oak Park
- (617)280-4565 | Bedford, Mass. 01730
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-