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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30290 invoked from network); 24 May 2022 16:09:26 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 May 2022 16:09:26 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1653408566; b=agm0uGmH4okPD5SjS9aenpR55R4Wo0508pIyIk3fBCn3EgInBTPFK/aUoqrvwafZGzmwb/PWSs YtGh04R6VLhNNdb2mpS8i2HGFxxwKJvzKPN3xMtu9frMBrRWssXfFn7gsL+4KYZvO/dNJe9aro aHxtArG+h7JnnQZb8ip+kyITQqgsdElIqPxQzDKAbEZALOHMnbQpdMpvzmDBOCvlOJuj0t1C+W MbNC2Blu/GFY6bRRUDGSx7XjvEEREoHbLVhFtLLjc+vGY/cSg6P5k46eb+UAW6vl8PsGq7TAkJ Le33LhtQibU+C8jmxGIaf+4WloCcom+B3yA0ubNqmNnzaQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (02d.relay.hey.com) smtp.remote-ip=204.62.114.231; dkim=pass header.d=hey.com header.s=heymail header.a=rsa-sha256; dmarc=pass header.from=hey.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1653408566; bh=Vt2065VajIpRvYTkuuM8ldJvVaOddA1Ajx5iteyLzss=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: Message-ID:To:From:Date:DKIM-Signature:DKIM-Signature; b=Jy7Xd9h86qzs8yVxZZTy/d9VT3RPdkv4JiI9x934wilfqW4aSjNdUuq+2YeiBN3OoUs7ikjnGB WnYxGkZJkfO6O3aJmyzgOtvk4v8tQPJvzDBZz4iLl5rao3dt/OIi5IA2fQDeBybyRt+QPl6mor YERjNb8X0NFhGAhKJsTmpfyTX4Az0Q/yVJE5fvpBz3nueIFHJo1PAzDR7azBpDkrvVtPl9AHrB FMmki/gMf5PjMzgaHmOpwK+toyjz5WD3lwQ9uQ5j7Vxakqlx7BOENzr5eGH/riZYy8O6PK5TeB z1pW0+yWYaIh5XD3zHlnyPb15G79m2mEFoFU7HTDngvucw==; 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:Content-Transfer-Encoding: Content-Type:Mime-Version:Subject:Message-ID:To:From:Date:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=cPlTtogfya/qL8Ud7rjsprTP6z/FMXsGTKlAQbbwrNU=; b=qyWMMzp4HhVpoeqF6CWwhIy3+/ GfdXx4t1/Ay4m1NKLjaUyzxO23W2DhJHb/OE/Dt+tl7/V4gYXXWVXyvM8yg3t4f8GpWjFBXC0vTaf SL8gKACVfuzG5LItBAq3sY8C7dD05lUMorWS/zogd/oitcJyu1jHqsOQhj+LK7cHU9gMJHL/I+HC4 eXSPfUexoHejfna4n77Qmr5fdI9eYOJPSgTR7IRJ9Ga+qloXHkw8JPWD6x3GjNhIOj06PVezE6D4L BiAajDW0aIxt4KaZ3CJYuKoGCYSMKwOp4z/dH+8ACi8bT8XkRXpFqsOct4xSL7jV+EQg5OBSI2Tgt waUhanGg==; Received: from authenticated user by zero.zsh.org with local id 1ntX64-000L4s-G3; Tue, 24 May 2022 16:09:24 +0000 Authentication-Results: zsh.org; iprev=pass (02d.relay.hey.com) smtp.remote-ip=204.62.114.231; dkim=pass header.d=hey.com header.s=heymail header.a=rsa-sha256; dmarc=pass header.from=hey.com; arc=none Received: from 02d.relay.hey.com ([204.62.114.231]:47877) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1ntX5q-000Kke-Dn; Tue, 24 May 2022 16:09:12 +0000 Received: from hey.com (bigip-vip.rw-ash-int.37signals.com [10.20.0.24]) by 02.relay.hey.com (Postfix) with ESMTPS id DA0AA1BFFAE for ; Tue, 24 May 2022 16:09:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hey.com; s=heymail; t=1653408548; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cPlTtogfya/qL8Ud7rjsprTP6z/FMXsGTKlAQbbwrNU=; b=D+Vgpu22b3su3fp6eQWKqKu84mQgIJzfTp130OpcGBYEtNgx2Fmq381KxbXMMMwAssRKhb NQpdEwZpToyeLAfa/CHyXvi/9kCsq4ltLmvjyM6lahSAtBVj4iw4zl7URD309NSE+BkuD+ JezbqbQm7+6irJCrGWFPGj0CIMC4A+6ZciC2R3y7OsRDYtsyoeDFIOEJj1guQzjLv/LytM kezE+2yWyEMCcFHoKG+mNlSIiUQV9+6k3be2ZY+T1V296lYB9VzC047+JpRThIqPEGQK3f gzGlepzFV082xcxumBS3B6r1rbGjv8+4rzStnH0Z4fckGvuu8/5+xnsWEbNx6Q== Date: Tue, 24 May 2022 11:09:07 -0500 From: Eric Nielsen To: "zsh-workers@zsh.org" Message-ID: <9162a41e493cabeb0c8fb7c770f6b35035a0be0e@hey.com> Subject: zargs with -P intermittently failing in zsh 5.9 and macOS Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_628d032444875_1370267043271"; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Seq: 50281 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: ----==_mimepart_628d032444875_1370267043271 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, I'm seeing zargs with -P intermittently fail with in zsh 5.9 in macOS. Here's the information I could gather so far. Minimal reproducible example: % f() { curl -Sso /dev/null 'https://example.com'; return 0 } % autoload -Uz zargs % setopt xtrace % zargs -n 1 -P 0 -- {1..13} -- f Expected the status code to be 0. Most of the times I get 123 instead. The xtrace output shows: +(eval):6> case 19 (<1-125>|128) +(eval):8> ret=123 at least once, even though f always returned 0. Added the extra return 0 in f to force that return code. If f is simplified, I don't see the error. If the -P 0 is removed, I don't see the error. If the range is shortened, the error will be less frequent. Even with {1..13} it happens to sometimes succeed in my Mid 2015 2.2 GHz Quad-Core Intel Core i7. This is not reproducible with earlier versions of zsh or with the /bin/zsh bundled with macOS (zsh version 5.8.1 in macOS 12.4). This is reproducible with zsh 5.9 installed both via homebrew or macports. This is so far not reproducible in other OSs. Information comes from https://github.com/Homebrew/homebrew- core/issues/101937 and https://github.com/zimfw/zimfw/discussions/459. Kind regards, Eric ----==_mimepart_628d032444875_1370267043271 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi, I'm seeing zargs with -P intermittently fail with in zsh 5.9 i= n macOS. Here's the information I could gather so far.

Minimal rep= roducible example:

% f() { curl -Sso /dev/null 'https://example.co= m'; return 0 }
% autoload -Uz zargs
% setopt xtrace
% zargs -n 1= -P 0 -- {1..13} -- f

Expected the status code to be 0. Most of th= e times I get 123 instead. The xtrace output shows:

+(eval):6> = case 19 (<1-125>|128)
+(eval):8> ret=3D123

at least on= ce, even though f always returned 0. Added the extra return 0 in f to for= ce that return code.

If f is simplified, I don't see the error. If= the -P 0 is removed, I don't see the error. If the range is shortened, t= he error will be less frequent. Even with {1..13} it happens to sometimes= succeed in my Mid 2015 2.2 GHz Quad-Core Intel Core i7.

This is n= ot reproducible with earlier versions of zsh or with the /bin/zsh bundled= with macOS (zsh version 5.8.1 in macOS 12.4). This is reproducible with = zsh 5.9 installed both via homebrew or macports. This is so far not repro= ducible in other OSs.

Information comes from https://github.com/Ho= mebrew/homebrew-core/issues/101937 and https://github.com/zimfw/zimfw/dis= cussions/459.

Kind regards,
Eric

----==_mimepart_628d032444875_1370267043271--