From owner-freebsd-stable@FreeBSD.ORG Tue Oct 13 05:32:51 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1028106568D; Tue, 13 Oct 2009 05:32:51 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-ew0-f218.google.com (mail-ew0-f218.google.com [209.85.219.218]) by mx1.freebsd.org (Postfix) with ESMTP id 5648A8FC1E; Tue, 13 Oct 2009 05:32:50 +0000 (UTC) Received: by ewy18 with SMTP id 18so3457072ewy.43 for ; Mon, 12 Oct 2009 22:32:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:cc:subject:references :organization:from:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=u4uSOtNcVq1wBzXLELGJahTc3PNexnX5bmtOrskvJZw=; b=wr6PJz/CtULMUxVAdxYc+ey9IVK2H4X77ICpMl2MFfAUC2+qmOeVAxeaIC2KnNQHoO QS2Ls1zygp8sCcb9OHqSK0vxPW9UZsWWN+yUl4WKOhtlUVIyEQBhzzuLuuw+kIhLxQHJ HJjU4BCArHfyIRhXzwZ64hQ8yvhZiKt59FrZg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:cc:subject:references:organization:from:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=IRZmfYoBjDDq3D66EPZ9gT9QWX0SqUJOzEd7FD/oquv3b0dA1loVgXvFHQ6P3IFry+ woyPv2Vr6HJ8VtIYDKP7jrfyp+vWnEB+eNFwV7p1eHj1AtpUvgtSwBow6mLMscaFyWt1 yRDMAAjZNc78HzuWXc0pzEeBj+GdVqgfQDVEc= Received: by 10.210.7.16 with SMTP id 16mr8257609ebg.14.1255411970263; Mon, 12 Oct 2009 22:32:50 -0700 (PDT) Received: from localhost (ms.singlescrowd.net [80.85.90.67]) by mx.google.com with ESMTPS id 7sm2196423eyg.19.2009.10.12.22.32.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 12 Oct 2009 22:32:49 -0700 (PDT) To: Doug Barton References: <861vla2ogy.fsf@kopusha.onet> <4AD3BB3E.5000809@FreeBSD.org> Organization: TOA Ukraine From: Mikolaj Golub Date: Tue, 13 Oct 2009 08:32:47 +0300 In-Reply-To: <4AD3BB3E.5000809@FreeBSD.org> (Doug Barton's message of "Mon\, 12 Oct 2009 16\:26\:54 -0700") Message-ID: <817huzj1ts.fsf@zhuzha.ua1> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-stable@freebsd.org Subject: Re: can't change tty speed and buffer size on 8.0 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2009 05:32:52 -0000 On Mon, 12 Oct 2009 16:26:54 -0700 Doug Barton wrote: > Mikolaj Golub wrote: >> Hi, >> >> On 8.0-RC1 if you run this command: >> >> cat > /dev/null >> >> and try to input a long line, the maximum length you can input is 1920 >> characters. >> >> I have investigated a bit how I can increase a tty buffer as this is a problem >> for me (I have logs with very long lines and I used to copy&past a particular >> line into input of some script to structure it). > > I have no useful input on the buffer size issue, but if you wanted to > post a bit of your script we may be able to help you find a different > solution that doesn't involve cat. :) Thanks, but cat was taken as a simple example just to illustrate the problem. The real scripts are usually on perl with 'while(<>)' loop or 'perl -ne' one liners. And sure I could find ways to workaround the problem and actually this is what I did until ed@ provided the solution. -- Mikolaj Golub