Return to BSD News archive
Newsgroups: comp.unix.bsd.freebsd.misc Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!news.radio.cz!newsbastard.radio.cz!news.radio.cz!CESspool!hammer.uoregon.edu!news-xfer.netaxs.com!feed1.news.erols.com!howland.erols.net!vixen.cso.uiuc.edu!uchinews!not-for-mail From: eric@fudge.uchicago.edu (Eric Fischer) Subject: Re: Is there a line length limit? (2.2.1) X-Nntp-Posting-Host: fudge.uchicago.edu Message-ID: <E8FGvC.27v@midway.uchicago.edu> Sender: news@midway.uchicago.edu (News Administrator) X-Newsposter: Pnews 4.0-test51 (15 Jan 97) Organization: The University of Chicago References: <5ihpck$h8p$1@Mars.mcs.net> Date: Thu, 10 Apr 1997 15:11:36 GMT Lines: 13 Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:38906 In article <5ihpck$h8p$1@Mars.mcs.net>, Font <font@MCS.COM> wrote: > I'm using FreeBSD 2.2.1 and programs which accept input from stdin, > such as cat, won't accept lines longer than about a thousand > characters. If I pipe these characters instead of typing them, > everything works. This happens under /bin/sh and /usr/local/bin/zsh. > Is this something in the kernel? Yes -- the terminal driver has hardwired limits for the length of a canonical mode input line. See the definition of MAX_INPUT in /usr/src/sys/kern/tty.c. Eric