help-bash
[Top][All Lists]
Advanced

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

Re: Is there a setting to deny a command input that exceeds certain leng


From: Chet Ramey
Subject: Re: Is there a setting to deny a command input that exceeds certain length?
Date: Wed, 8 Sep 2021 09:43:19 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 9/8/21 6:39 AM, conan zhan wrote:
> I have noticed that in 'bashhist.c' , any command input longer than
> "SYSLOG_MAXLEN" will be truncated and log the only first 600 bytes. 

This is old; bash-5.1 logs multiple messages if a command exceeds the
syslog message maximum length.


> Is there a
> setting in some script that denies a line longer than this/or some length?
No.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]