tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



On Fri, Sep 27, 2024 at 10:47:39PM +0700, Robert Elz wrote:
>     Date:        Fri, 27 Sep 2024 15:04:18 +0200
>     From:        tlaronde%kergis.com@localhost
>     Message-ID:  <ZvatUpCvWtk7LrDS%kergis.com@localhost>
> 
>   | 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


Home | Main Index | Thread Index | Old Index