Re: [PATCH] input: Only skip blank lines on PS1

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

 



On 05/01/2023 07:26, Herbert Xu wrote:
On Wed, Jan 04, 2023 at 11:18:49AM +0000, Harald van Dijk wrote:

One is that because of what you say, the history recording for commands
greater than BUFSIZ is already buggy, but unlikely to pose a problem in
practice currently because normally, people don't write such long commands.

It's not just that people don't write long lines, it's the fact
that most people use the shell with a terminal device in canonical
mode and the line length is capped in canonical mode to some value
less than 8K.

Remember that we're talking about builds of dash here with libedit support, as otherwise history is disabled anyway. In builds with libedit support, I would imagine the more common use is that libedit is used for entry, in which case the terminal is *not* in canonical mode.

Cheers,
Harald van Dijk



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux