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 16805 invoked from network); 13 Apr 2021 16:02:09 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Apr 2021 16:02:09 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1618329729; b=Cnw9+BJnHmw4QDqncNxw0lxro/lcKRxhKKRKDvg8V4np5NYk3Gx/N74xlQLJ7bc6zjbegRh903 lBr1MwqODcj7p1O1V4hHzKoyswYA92ropaZYQsElKtbHI6vqS2ZqOB3ib6YWyEgOin0C+oYnOt x7549P9UzNuBL95DZbDez3SYfStu4cmD9WtEkpWXhCFx7F+RsoWt7dBgHumk2WpkFgCWX7wBfX mnrukadOY/UTaE5Wz7JzTkPhmGrhhitrpV4vjJeKWk4eIK+soe8jIdTfvfsrmOVYKrBv/j95To B/nYnIK7mZMz3W6I2hixug+c1Kk2UNNbhHiLM4Ed6z6niw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out2-smtp.messagingengine.com) smtp.remote-ip=66.111.4.26; 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=1618329729; bh=d7E0G3CaMl4cPv5D6jG1lfLAdahywBehEa75iTIIWpg=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:DKIM-Signature:DKIM-Signature:DKIM-Signature; b=E+UtX1oHKpSR1Lc+WEq4BXX0E3n2qWCMSe4rH3JMvNSaWQDRDGvf1hWUH/gUypBS7ungEaW7hI 5JNGKm+p9e39DwmExrOTNSEXQ/vRaVeQGl1p3E0KAqCjM04lucikwG05zMK5ZGxMehKGPENlLV VWDY7RrC2fQZuKEA2Sp+3+5T+e/Da2Hofqamzpg39MUeeLW9N580Fm+SCbhYYzrZu2cMV9yZmq x8eiUOAtA0MnLbKMd6IqMsjuQkUbQsR+SIqGn1oiUfl2VrSQDI+F5VNozFUZeOWmokxmIF/UvD 2Lp92bFv4i4oB59NzUWC2Jki5wfLX3yQ+ZuzoWIiy8LCNg==; 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-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=tI90qEehg2gs4g2aHU7mTHnY16OcJfWUalafQGdYwbU=; b=IyW74nsZ/ubsg6ybk6FObAbns/ IAwpLZAG8tfZfzY6R0Y29xqosXoz4Wc2Bay5BNGD2j7uwFhOOoz8w1oifZ8SK9jMsiWu+lFFpZRrH u3f79EscovwzrMjhXW4fHmbr2pRM7DTFmifb0Ev72t+qBzEkri0NS0LxOEXH4oTVwlIEposOdJ1EZ T7yNjrz5CQulNql2I+UpouaOgQPjJmni3oLDjIZriP2xdlYhY1DHLU6w1iRo18xUpbSdUH7+5B+sX Mk/xNAN2cIhTKOpRdMUNLD7QhCd6iP0xDPKWLrZwS5PulopGiM71LbNKqIsQ7Jz4l2Hjoaixtfntt nvQpe5Og==; Received: from authenticated user by zero.zsh.org with local id 1lWLUO-00089S-Nt; Tue, 13 Apr 2021 16:02:08 +0000 Authentication-Results: zsh.org; iprev=pass (out2-smtp.messagingengine.com) smtp.remote-ip=66.111.4.26; 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 out2-smtp.messagingengine.com ([66.111.4.26]:38127) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lWLU8-0007tL-6i; Tue, 13 Apr 2021 16:01:52 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 6610E5C00A7; Tue, 13 Apr 2021 12:01:51 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 13 Apr 2021 12:01:51 -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:in-reply-to; s=fm3; bh=tI9 0qEehg2gs4g2aHU7mTHnY16OcJfWUalafQGdYwbU=; b=Dt2X3VQFYlaJksgNpTN WEPZanaU3I0qwj5MCyKV4Rz+qS9xhKcEgCJ9kK2/+NQQxTSOR3Dnty68kjU2L5Dp DOV9uj6I1O8UeZBHSpJKgueMow0di6uVgvcxj/tmFunvquAefWZhwPliw2N7k1cz wHZVfz1taGI1nzssLr25t1/sxYZFPkRqoBPo/y7JRQhdJLvHQDWoFHnhFgRmuWwH 9vdvKkZgfXK8EqOgOzYIQ5BdcUNJa4cdrPGcKgb0LxNBUKVlsn+XNA4a/bXxF+i8 8ryL5f9ren+vk01JWjgO14aSIxXRvGE3twM7nchgyH3jKdRzju+AwlczxqhTYlJ6 ozQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=tI90qE ehg2gs4g2aHU7mTHnY16OcJfWUalafQGdYwbU=; b=dwnDX0imCK1i/wp+MHBobt uiSYlXNjUdgMqtrzKzGtm+Tuwu50RmId42TpeyCNLbBnR1qzhhX8U4ihDXNoolhM moH4MwsBhmSSi9Ie5UBD2XSlpZx+dSm+yg2sJF2d/HR6n+6H2+59WF8zFlX68Osh 1GMsN7EKxg7Bx3I6XRh+E6Oz/uVUmDVN2E1wuwuNQnvDdHuLrJr4NVodN/gFrmj2 AZ3ZZHn4B/yHV3DNCLPE+M9N8PH7pzlrnbgGhWEcdcXhjKRaWrQOce8a1HOr6nZO hJyAsTYVB5J6TxvZGS+m/bj78kceW4J31DAEhohecafRLp3cr2AR/BvcYR6LZJWw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudekledgleeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujggfsehttd dttddtredvnecuhfhrohhmpeffrghnihgvlhcuufhhrghhrghfuceougdrshesuggrnhhi vghlrdhshhgrhhgrfhdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeeuveekfeffueefhe efhfegffefvdeitdehtdegleejledviefhveejfeetgedvkeenucfkphepuddtledrieei rdeifedrvdeftdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvg 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 AE037108005C; Tue, 13 Apr 2021 12:01:50 -0400 (EDT) Received: by tarpaulin.shahaf.local2 (Postfix, from userid 1005) id 4FKVj91zc4zn9; Tue, 13 Apr 2021 16:01:49 +0000 (UTC) Date: Tue, 13 Apr 2021 16:01:49 +0000 From: Daniel Shahaf To: dana Cc: Zsh hackers list Subject: Re: [PATCH] Document imperfections in POSIX/sh compatibility Message-ID: <20210413160149.GT6819@tarpaulin.shahaf.local2> References: <7FD930F4-37CD-402B-9A06-893818856199@dana.is> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7FD930F4-37CD-402B-9A06-893818856199@dana.is> User-Agent: Mutt/1.10.1 (2018-07-13) X-Seq: 48537 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 Sat, Apr 10, 2021 at 18:31:31 -0500: > Lawrence bumping 47794 reminded me of this. Someone on IRC was trying to use > zsh as sh and they were very annoyed to learn that the sh emulation has > imperfections that aren't really documented anywhere. I said i would add a > mention. Let me know if this is editorialising it too much > > dana > > > diff --git a/Doc/Zsh/compat.yo b/Doc/Zsh/compat.yo > index f1be15fee..a09187918 100644 > --- a/Doc/Zsh/compat.yo > +++ b/Doc/Zsh/compat.yo > @@ -74,3 +74,8 @@ tt(PROMPT_SUBST) > and > tt(SINGLE_LINE_ZLE) > options are set if zsh is invoked as tt(ksh). > + > +Please note that zsh's emulation of other shells, as well as the degree > +of its POSIX compliance, is provided on a `best effort' basis. Full > +compatibility is not guaranteed, and is not necessarily a goal of the > +project. I'm concerned that saying "is not necessarily a goal of the project" might discourage people from even reporting bugs in the first place. No objection to setting expectations, of course, but could we phrase it differently? E.g., by documenting a list of known incompatibilities that won't be fixed? Sorry for going off-topic ;-) Cheers, Daniel