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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31685 invoked from network); 14 Apr 2021 12:39:29 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Apr 2021 12:39:29 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1618403969; b=QWVl2mTcJ5+CqsxddAWnqtQFGsE0QTIj78XRLm4l9HQfBfBdjc1BxOSBqDce9Gl3FgiHm12LK1 eMq7+fez9JLRI9fjBfUcPn3nQXIIXsJrprurYEuzR/ogXRnwizQRtWFZBO/QKcbZdQoABFl1vc sZ9IM47k7HLbWZiDUVjzXVycfZojcQjtS21PaLGduK9fwLeUdGWts/Q+noLxowGAHhxfYZMBmH sqr9U7HbQRbNRH9WGXraEq8zqw7Xi58dHn1a+5ZL3E/vKUz1tm+Scs/Zgc92eJluqcOK1aXyF4 JawtozkZQ6enQp9LMC+PqafGquQFcBRi6NozjAzE5xTtOQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (wout5-smtp.messagingengine.com) smtp.remote-ip=64.147.123.21; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1618403969; bh=vKbiAcD8Dux75geWCNDDlRCNe2cYmbxxodtCbtGdVQQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=nzBecTicLDJxzTxS9WLn3dem+szw9ktw8/Nb9t+RNmYpp22GGLyfsp0tRNuKbRQCZhlIMSyK/X LUROF+manIOihfIdBMmY3T5VMbysvz2Kgfl2jWwniXwv6gS5WKHIYj79SioPZwockcp+9981Pc 0FAJvrD/02e347aK8QBaIaRGRnOdW7w85gKPvO4CGZy6X8OehSsP3eoXfjJt70Tz4Mc7JP3M4C TgEeOMTei2WwCHBGrtMVMfhfxGXGxeMk6vDkLgsmIXBEry4dj8mjUj7xzFDfp2B94oRSlq6ucn 7FKLcbCVOHK4zVe5fOD3Uv+RKVQCl0Aa+aMla6BAmg+5rA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID; bh=hur5WxhdwMsn6hUsUT+76+yk46mon2tHkolev9MkDN0=; b=F1tQLQg63nZ6ZKRE0gpSsjW4ib djjq0go3VCGFgbK4qGXUYJH67KHn3cawLLnD+H4CM4+Pr+hcln+/pJGroYiW7lL8BmKqfx6RyIxzq U/gElPdwdV/79QEmZh5Z8gmjsF2nQgIt4cKEDTOdspHhItZKi0LAqie97aGSw7RSmQr5mzajPygJM qldC7h3GQBuLiomR5LSPKh8Zt4d4BVD/vCJ2KyJVfAJcZJchRkUjM9jNhjEfvI/sc67yZaaFHq6LU xgWM39o+CTLyjLF5pW6iV8iZH6V4cVdVFsE0OwpFqN+nav0rAjvu4ZhwwwllAnYW8suJHn0uFYCC4 /FiAlRUg==; Received: from authenticated user by zero.zsh.org with local id 1lWeno-0000oE-Oa; Wed, 14 Apr 2021 12:39:28 +0000 Authentication-Results: zsh.org; iprev=pass (wout5-smtp.messagingengine.com) smtp.remote-ip=64.147.123.21; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:36667) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lWenI-0000Y1-TK; Wed, 14 Apr 2021 12:38:57 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id C6D891952; Wed, 14 Apr 2021 08:38:54 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 14 Apr 2021 08:38:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:content-transfer-encoding :in-reply-to; s=fm3; bh=hur5WxhdwMsn6hUsUT+76+yk46mon2tHkolev9Mk DN0=; b=WotY0OR35qjid+eC/Dx63pJ9hQfqqiiJ2RRjxhn9SEjy5pjZ/i8F2pBh t2EWOfF7mZSsDQKty/GuyBIDuHV/T2U129sSctxN8luuU7FuPivvmmFrl2TnWoHd u/zGVazEjFsIsYgePGsf5cDxLJB4fyOtnq40VKeiMKs3pb/l/VrxL3DFwI89zAim L6Xc4BjtvR7tTW6RK7za2lUlklvXlB5Er3YnjEXRlZmSjWnR1PS9gD4nAbRJORIE cUshygQo+5OZ33+U27BSlgqqCrkF1N3ubtmZHS2yHgcbGKVrWJo6VZ8hp4apb5u4 uoM88+L/Gz6/iP3SRXagaJIG7i7ypg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=hur5WxhdwMsn6hUsUT+76+yk46mon2tHkolev9MkD N0=; b=mZYiaZdSh2doNfwAsKPYf0R8z1+Pz6agPWuUyYAwEXepTJElkSGcuiws6 UJgn6dQZqWnz5nGRRCz2MT24b2vLPDBgzdaZaTqGvs+evVJaY+m/6WPPfF8BTjf+ E/unf4G60nIWQWaSCNxeu5/iKzuEHFIU4a5u5TVVAEG5bSkYXRcPjH9eeXHM50dK +1yOp7hVNnzsaN7QBDT93nwceoywalObJfE9FxwvS2roFincOiykyw9ZxOhsSz8+ EUWmLXfjvfs32B3tX0PPDpH6LYTu+sVHyGe8JaO6rvH2hFp0GbPjsPGxIyYOGe4a S3fg2+YCkQ/noFuYlPDQEPu0RylFw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudeluddgheehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggugfgjfgesth ektddttderudenucfhrhhomhepffgrnhhivghlucfuhhgrhhgrfhcuoegurdhssegurghn ihgvlhdrshhhrghhrghfrdhnrghmvgeqnecuggftrfgrthhtvghrnhepffefgfefveegff ehleefvedtkeefffdufeehfeeikedtvdffvddtueelfeevleeknecuffhomhgrihhnpeii shhhrdhorhhgnecukfhppedutdelrdeiiedrieefrddvfedtnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepugdrshesuggrnhhivghlrdhshhgr hhgrfhdrnhgrmhgv X-ME-Proxy: Received: from tarpaulin.shahaf.local2 (bzq-109-66-63-230.red.bezeqint.net [109.66.63.230]) by mail.messagingengine.com (Postfix) with ESMTPA id 9B1F224005A; Wed, 14 Apr 2021 08:38:53 -0400 (EDT) Received: by tarpaulin.shahaf.local2 (Postfix, from userid 1000) id 4FL28W4wP2z43s; Wed, 14 Apr 2021 12:38:51 +0000 (UTC) Date: Wed, 14 Apr 2021 12:38:51 +0000 From: Daniel Shahaf To: dana Cc: Zsh hackers list Subject: Re: [PATCH] Document imperfections in POSIX/sh compatibility Message-ID: <20210414123851.GB3882@tarpaulin.shahaf.local2> References: <7FD930F4-37CD-402B-9A06-893818856199@dana.is> <20210413160149.GT6819@tarpaulin.shahaf.local2> <71591-1618345721.890846@bhQS.j43I.WlFg> <44B8DB07-C205-4983-8E12-472203CA4985@dana.is> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <44B8DB07-C205-4983-8E12-472203CA4985@dana.is> User-Agent: Mutt/1.10.1 (2018-07-13) X-Seq: 48565 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: dana wrote on Tue, Apr 13, 2021 at 16:40:19 -0500: > +++ b/Doc/Zsh/compat.yo > @@ -74,3 +74,9 @@ tt(PROMPT_SUBST) > and > tt(SINGLE_LINE_ZLE) > options are set if zsh is invoked as tt(ksh). Looks good. A couple of minor points: > +Please note that, whilst reasonable efforts are taken to address > +incompatibilities where they arise, zsh does not guarantee complete s/where/when/ ? > +emulation of other shells, nor POSIX compliance. For more information on > +the differences between zsh and other shells, please refer to chapter 2 s/chapter/Chapter/. There is some relevant information in §3 as well, specifically, in 3.31 "Why does my bash script report an error when I run it under zsh?". However, that question hasn't been published yet, so perhaps we should just move it to §2. The space in "Chapter 2" should be a non-breaking one. An nbsp() macro was added to yodl in 4.02.00, which is the version I have, but when I try to use it (without worrying about compatibility to older versions, for the sake of testing), I just get «expn.yo:36: No macro: nbsp(...)». I'm not sure why. (Compatibility to older versions could probably be done with IFBUILTIN().) > +of the shell FAQ, uref(http://www.zsh.org/FAQ/). s/http/https/ Cheers, Daniel