Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sources.redhat.com Delivered-To: mailing list cygwin@sources.redhat.com Date: Thu, 10 May 2001 15:46:13 -0400 From: Chet Ramey To: JROZYCKI@ebmail.gdeb.com Subject: Re: Question about the 'read' command in bash Cc: cygwin@cygwin.com, chet@po.cwru.edu Reply-To: chet@po.cwru.edu Message-ID: <010510194613.AA39326.SM@nike.ins.cwru.edu> Read-Receipt-To: chet@po.CWRU.Edu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-In-Reply-To: Message from JROZYCKI@ebmail.gdeb.com of Thu, 10 May 2001 15:27:04 -0400 (id <85256A48.006A6FF5.00@ebmail.gdeb.com>) > I have a bash shell script with the following lines of code: > > #!/bin/bash > uname | cut -c1-4 | read op_sys > echo $op_sys > > This works fine at work using SGI IRIX and ksh, but under cygwin and bash > at home, op_sys does not get set - null is echoed.. what do I need to do > differently? Read the Bash FAQ, question E4. ftp://ftp.cwru.edu/pub/bash/FAQ -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ( ``Discere est Dolere'' -- chet) Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/ -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple