Message-Id: <200608041401.k74E0sIt016229@delorie.com> X-Spam-Check-By: sourceware.org Date: Fri, 4 Aug 2006 14:00:44 +0000 (GMT) X-Comment: Sending client does not conform to RFC822 minimum requirements X-Comment: Date has been added by Maillennium From: CB To: cygwin AT cygwin DOT com Subject: ssh breaks while loop X-Mailer: BlackBox Mail 3 (Developed by B. Ford) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailerDownload: http://homepage.eircom.net/~informail X-IsSubscribed: yes 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 If file hostlist contains: hosta hostb hostc then execute this shell script: while read host do ssh $host ls -al .profile done < hostlist the while loop executes one time and quits. But, while read host do echo $host done < hostlist executes 3 times. Am I missing something or is this a bug? -- 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/