Re: sh(1) read: add LINE_MAX safeguard and "-n" option

[email protected]
Newsgroups gmane.os.netbsd.devel.userlevel
Message-ID <[email protected]>
On Fri, Sep 27, 2024 at 10:47:39PM +0700, Robert Elz wrote:
>     Date:        Fri, 27 Sep 2024 15:04:18 +0200
>     From:        [email protected]
>     Message-ID:  <[email protected]>
> 
>   | If I understand correctly your view, the explanation could be
>   | something around this (I mean for the idea; for the way it is
>   | expressed in some kind of english...):
> 
> This what I came up with (no -N option has been implemented, I don't
> see the point at the minute - that can be revisited later if someone
> can demonstrate a meaningful use for it).
> 

Quite an improvement compared to what I have read elsewhere!

Just a note on typos:

> 
>                   -p prompt  If the standard input is a terminal, then prompt
>                              is written to standard error before the read com-
>                              mences.  If more lines of data are requred in
                                                                  ^^^^^^
                                                                  required
>[...] 
>             If the -r option not was given, and the two character sequence `\'
                               ^^^^^^^                             ^
                               was not                             s

Best,
-- 
        Thierry Laronde <tlaronde +AT+ kergis +dot+ com>
                     http://www.kergis.com/
                    http://kertex.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.