From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24836 invoked from network); 23 Oct 2022 20:47:56 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 23 Oct 2022 20:47:56 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1666558076; b=pJw8DhtA2QaESE+7reOQi3JJQAYFxnYKjCbtBwwWKKHW8JWScRooVDIm30yXK7MJ/861m/G0jE 2vtlaoo+WIiGFWQvAPBqmXiLq/0PMWnv3FYreRU5POTAqgBbKmw83mOo+C14nos1WhvAuJ0+so R8HZcdes5cBg31JaVJMqjjyaVD/XF2Qs7P/WEUELwrg160cr++SRL0fNhQHCYx80TrgFOnFMpy ipr7/bUqMjtAl0aFDowcVUSG0NhUr7YrehoNvwdmxZRIgV16uvo//ooqJy/2hUDh1/30cHmUmF oOebmlxX56SAPlio10610RXw0UE1McNIs44N0ZJwvQBfwg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1666558076; bh=/woNdaRWGHT1te3MgT3SECnCx1FMHVmu5s/PPq5bWmg=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Subject:From:To:MIME-Version:Date:Message-ID:Content-Type: DKIM-Signature; b=T+ir1TjKhHQs20GXK1pAblXtIRemfkSafyVZ56nTrrZaJLDjG+7aDRnils+q3CND9H6rgqZG+/ VWfPIh5zYkptVdiBe1pI+64FjcMhjiEUSUn8Btzwfz2vCp6SJSlV+3UuFq1KA23309U1tfIzbF IkNYodpKP5kfozGXntL/Tykk0pVfjbl8cv1FIDJu8uY+jzsePxsZBo+Svoc0LSl3eGSKkvpjLR bPQpIhHDMieu/am/qOlnlwIKdChiGmoSB4X9+yFsI8g43flA58yXukad0jNKD0WIHW0k6lfXac Ds99yZgS4uwNOx2+32wRNMIAJIIhDuDv7l1Boi7jhTnwpQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Subject:From:To:MIME-version:Date: Message-id:Content-type:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=TVesapbV2s59yQjDo4LfiVVjvZgzV5URIzDvKrN5A6Q=; b=rRz8Rt9brr/azM8fAfdjG7Vgnm En7UNOPYrNcCdRpkClOJ4NYH3RRUIaxIFi/z3PWIM8/36STZVp79akeekYvN95tyavfrMj7ZiOp9Q xHuwxgZycAXqueJEWLIhYjXOOLL4OQYfu6eYJrfTta11Dh091RWF2ySO4h6i0Eo0uccraihS1WQn9 CcSQXHAiCxvrST1YzQZGNvLpWHzrMSTExqpR83D8BK5yNJkWMfi4HvTNxjlbTdQOIoz2SI/kIuNoA 4bLlOgbhYoshl0+tPw3lIyZMuf6y5nX36LazybId/d2Q3EAIDOuRwCKAhr4shSfj87Kt90O6Izrer B9b9m83Q==; Received: by zero.zsh.org with local id 1omhsx-0009PR-KT; Sun, 23 Oct 2022 20:47:55 +0000 Authentication-Results: zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none Received: from mta03.eastlink.ca ([24.224.136.9]:33947) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1omhsG-0008h2-La; Sun, 23 Oct 2022 20:47:13 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta03.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RK800HHA3D1UR50@mta03.eastlink.ca> for zsh-users@zsh.org; Sun, 23 Oct 2022 17:47:11 -0300 (ADT) Received: from [192.168.0.2] ([24.207.18.108]) by Eastlink with ESMTPSA id mhsEouBU0NYQUmhsFoMVqi; Sun, 23 Oct 2022 17:47:11 -0300 X-Authority-Analysis: v=2.4 cv=JMn+D+Gb c=1 sm=1 tr=0 ts=6355a84f a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=CXQrJX_mIt-fxYhOxvwA:9 a=QEXdDO2ut3YA:10 a=QOdeKczRkZitCRThE5UA:9 a=_W_S_7VecoQA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrgedtvddgudehfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurheptgfkffggfgfvhffusegrtderredtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeejjeffgeelkeekheeljedvkeevhfdtieevudeiudevkeevvefhkedvheegueelkeenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrddvngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepuddprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: -100 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------6HT3cW2mJJv5noUbX0QcL7qB" Message-id: <80a69953-a19c-f5c3-17fb-747633527712@eastlink.ca> Date: Sun, 23 Oct 2022 13:47:10 -0700 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Content-language: en-US To: Zsh Users From: Ray Andrews Subject: stty size doesn't work X-Seq: 28259 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: This is a multi-part message in MIME format. --------------6HT3cW2mJJv5noUbX0QcL7qB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit I doubt this is zsh's problem but she may have a solution just the same.  I do this in my 'i' function:     width=${=$( stty size )[2]} ... and it works fine, however if I call the function thusly: _function_test () {     local integer i=0     while read aa; do         let i++         eval ${=aa} 2> /dev/null     done }     $ _function_test <<< "i path" ... 'width' is zero.  I think this is some 'stty' issue, still the function will be running in a terminal and the terminal has a width so it puzzles me that no width can be reported. --------------6HT3cW2mJJv5noUbX0QcL7qB Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

I doubt this is zsh's problem but she may have a solution just the same.  I do this in my 'i' function:

    width=${=$( stty size )[2]}

... and it works fine, however if I call the function thusly:

_function_test ()
{
    local integer i=0
    while read aa; do
        let i++
        eval ${=aa} 2> /dev/null
    done
}

    $ _function_test <<< "i path"

... 'width' is zero.  I think this is some 'stty' issue, still the function will be running in a terminal and the terminal has a width so it puzzles me that no width can be reported.


--------------6HT3cW2mJJv5noUbX0QcL7qB--