From owner-freebsd-questions Sun Oct 14 20:22:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id 4E33337B41A for ; Sun, 14 Oct 2001 20:22:05 -0700 (PDT) Received: from blossom.cjclark.org (dialup-209.247.143.60.Dial1.SanJose1.Level3.net [209.247.143.60]) by falcon.mail.pas.earthlink.net (8.11.5/8.9.3) with ESMTP id f9F3Lk410746; Sun, 14 Oct 2001 20:21:47 -0700 (PDT) Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id f9F3LUS02022; Sun, 14 Oct 2001 20:21:30 -0700 (PDT) (envelope-from cjc) Date: Sun, 14 Oct 2001 20:21:16 -0700 From: "Crist J. Clark" To: doug@safeport.com Cc: Conrad Sabatier , freebsd-questions@FreeBSD.ORG Subject: Re: sh script question Message-ID: <20011014202116.J309@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from doug@safeport.com on Sun, Oct 14, 2001 at 11:04:09PM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Oct 14, 2001 at 11:04:09PM -0400, doug@safeport.com wrote: > Like magic - thank you. > > Do you know why it reads line-wise in this form? man sh ... read [-p prompt] [-t timeout] [-er] variable ... The prompt is printed if the -p option is specified and the stan- dard input is a terminal. Then a line is read from the standard input. ... There is much more detail on the read built-in on the manpage. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message