Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Oct 2001 20:21:16 -0700
From:      "Crist J. Clark" <cristjc@earthlink.net>
To:        doug@safeport.com
Cc:        Conrad Sabatier <conrads@home.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: sh script question
Message-ID:  <20011014202116.J309@blossom.cjclark.org>
In-Reply-To: <Pine.BSF.4.21.0110142248230.23659-100000@pemaquid.safeport.com>; from doug@safeport.com on Sun, Oct 14, 2001 at 11:04:09PM -0400
References:  <XFMail.20011014201436.conrads@home.com> <Pine.BSF.4.21.0110142248230.23659-100000@pemaquid.safeport.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011014202116.J309>