Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: AW: grep hangs Date: Tue, 18 May 2004 18:46:10 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: cygwin DOT 20 DOT job AT spamgourmet DOT com To: cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit > -----Ursprüngliche Nachricht----- > Von: Dave Korn - dk AT artimi DOT com > [mailto:+cygwin+job+7a44e0a003.dk#artimi DOT com AT spamgourmet DOT com] > Gesendet: Dienstag, 18. Mai 2004 12:59 > An: cygwin AT cygwin DOT com > Betreff: RE: grep hangs (cygwin: addressed to exclusive sender for this > address) > > > -----Original Message----- > > From: cygwin-owner On Behalf Of cygwin.20.job > > Sent: 18 May 2004 08:59 > > > I have the problem that grep hangs after I try to search a > > string in all > > files of a directory. > > grep fun * > > > > I can see that the grep process is idle as far as I > > understand the first > > letter in the ps right. > > PID PPID PGID WINPID TTY UID STIME COMMAND > > I 3144 3652 3144 3052 con 13724 09:52:02 /usr/bin/grep > > > > What is going wrong here? > > WFM. Does it depend what directory you're in? Is there something > unusual > in that directory, like a symlink to a device or other non-regular file > type? > I found it. The problem was that there was a file with the name '-' and grep thought to scan from standard input. After deleting everything is fine again. Thanks Franz -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/