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=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11359 invoked from network); 2 Jan 2022 02:43:54 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 2 Jan 2022 02:43:54 -0000 Received: from mail-yb1-f170.google.com ([209.85.219.170]) by 4ess; Sat Jan 1 21:34:38 -0500 2022 Received: by mail-yb1-f170.google.com with SMTP id y130so65480578ybe.8 for <9front@9front.org>; Sat, 01 Jan 2022 18:34:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mforney-org.20210112.gappssmtp.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=tNmaLTBfDLYfwoZ2Lb04nW6T4cRVCmJ/0JeXzSr2mbQ=; b=qbmZwZa0ey5Ec8iEfDPzDktj6PM57GKoeDV7JXgzIxkFgFwZwYWhT6D0mOwUj272u6 ststuXI4Mr9rR670LCFheygWwDQnEDNn7s6Y1swCxiZijudanHlK1R35Rv/osjlbIcT4 LbvIggD7l6Sn7lCfMkw+CtQZtAjant11tCaM0HeqZ5R9gccpmgtlhQDaVNcr0yu/rqjd u5l+CrcslrQDbhwyCP66UVQzpPKt7HVHAuN6bqJFSNFU42PydDx/BbtnM8RvoaQq4QK5 9EziZvg96Upw9qt2wG4pGKmJeS9JSLer8QVrrahfvwDCCzgOPUDlXexAKwOLw0cVwi0u mMxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=tNmaLTBfDLYfwoZ2Lb04nW6T4cRVCmJ/0JeXzSr2mbQ=; b=FjjNOFsDu5frFM4rWv/Pho8j8lcfLplcBp5XNSO/rYm2sX6LCi1ZfrPx8QB8xfTslf LKDPWePOjNTChbdch210wpnP5IgfVxTR+x5L7wqQ/rNNGMVX+YOiGavL56jmigNU2A4s CxrGpEb6oBzyq58ntf68dNa32l15PFtYK6ddffxvz+OC9Z1WJrPCKrrz4Qi1oxei8G9N U8tKefth+lBGQCyYbJWwve6NaPrZ8T3MBWyhc0mecy6NhBpdSjq+w4A82mOVP+uM3usu iQx2YZ0Ut6sDmPe7o+Ib/VDdsYe6Iy3ShhuiEm2Ug5swnIvfVBW8+DOUhfBriORBa/HS AEsw== X-Gm-Message-State: AOAM53236GbXE++t6lVcGL54vEBXQk2IO6/tHvT/u5O/SGdsKdSzJ9Qs BpkOfZxz3ceVi9vmSxskHCMddHnlxKX5kB5Ftrqw5HPlCQmup8mD X-Google-Smtp-Source: ABdhPJx1vk6YzRDH7HsSXTHkYQRV73TmrO8fIAAy6bjvjUUxTGvuZK3d1+hMwl9k97bZpIVKopt08rCePjhfQtfFbuc= X-Received: by 2002:a5b:d05:: with SMTP id y5mr41166233ybp.300.1641090865902; Sat, 01 Jan 2022 18:34:25 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a05:7010:8ea1:b0:1f3:468e:f4dc with HTTP; Sat, 1 Jan 2022 18:34:25 -0800 (PST) X-Originating-IP: [98.45.152.168] In-Reply-To: References: From: Michael Forney Date: Sat, 1 Jan 2022 18:34:25 -0800 Message-ID: To: 9front@9front.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: XMPP property-scale just-in-time-scale backend Subject: Re: [9front] [PATCH] g: use xargs instead of finding complete file list before greping Reply-To: 9front@9front.org Precedence: bulk On 2022-01-01, =E6=9C=89=E6=BE=A4 =E5=81=A5=E6=B2=BB w= rote: > Experiment in my server is > > hebe% a=3D`{seq 1 4000} > hebe% echo $a > 1 2 3 4 [snip] 3997 3998 3999 4000 > hebe% > > hebe% ls -l /sys/src/cmd/rc/io.c > --rw-rw-r-- M 98029 sys sys 3757 Oct 5 2019 /sys/src/cmd/rc/io.c > hebe% Looks like you're using an rc from before the recent refactoring on 2021-12-31 (commit b90036a0, rc: fix everything). Before the refactor, the write errors to /env/a were silently ignored. The rc process that initially set the `a` variable *does* keep track of the entire list, it is only when it goes to update /env/a that it gets truncated. You can try: a=3D`{seq 1 4000} rc -c 'echo $#a' This should show that the list is truncated in both versions of rc. It's just that the new version writes out the message 'Write error' when this happens.