X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: <4ED4F78D DOT 303 AT redhat DOT com> <2BF01EB27B56CC478AD6E5A0A28931F2039D9646 AT A1DAL1SWPES19MB DOT ams DOT acs-inc DOT net> Date: Tue, 29 Nov 2011 18:10:33 -0500 Message-ID: Subject: Re: Shell script - is this expected behaviour? From: DSB To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Tue, Nov 29, 2011 at 3:15 PM, Tim McDaniel wrote: > I don't have the time to experiment at the moment... Likewise, but it seems likely some existing utilities like "line" or "head -n1" might do the job. E.g. foo=$(line < file) foo=$(head -n1 file) -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple