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, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10800 invoked from network); 10 Apr 2021 23:31:53 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 10 Apr 2021 23:31:53 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1618097513; b=yFoWmX2WCTx66vMzkMR0feGLYJJeBbXfDwM2DlMVgf2z5dccgcAXfATbaq0W4D5WOJJ2h0DVDC njEtu6tk5d34newJlc0342cKRcDDHSsLOXm3n4kuc6KZ6oVOj1MCDthZwocY3hUgHzrQZyu1CI 6vUYDeJLJTf9WUg081pg72LqfUSKGm960dNeo7P/HsI9dfcvwGsOwGY2Wyom6c+qrC8jCv6T0N mY9W8GOB0/H/rbbDGAU0SU23BWUiFuvrhQxK5L6p2CW21dziREcQd1/T/dqQrg5fkzczXf8QjW g3uo28wmvEvbtNWpfyl5ZiUiLV7AnaST4qglXNEHWtdYhw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-qk1-f173.google.com) smtp.remote-ip=209.85.222.173; dkim=pass header.d=dana-is.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=dana.is; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1618097513; bh=DSSlazrNhP8141T4IwIF0wZIDrU13DCFZqYgzuxPaHw=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:Date:Message-ID:Subject:MIME-Version: Content-Transfer-Encoding:Content-Type:From:DKIM-Signature:DKIM-Signature; b=DSsCd+JWNl4nV90N34eUvlqNOQtvWpzkQt2W4Pm8efTe9vLesboLAcyKsuO2sTqH5+YfAJycvM ZxfErTyQFyDV0xXPLghHxpuDzctMqhm/R7GiUnMKwtt4yKOcQBsr7w4/cY8LC3vrK/oeJuWFQn rr4vVSATeT9cJPHLgFegR4o34om0K6hCY8Uajc/zHLkAikwUYJ+8GvXiLIVj1DZ3sPBb7ipLSF 83guSQ28rn3uGnHDyfWXkcdxHGS+WfMNuwp19U7fENtwiNL446Ksj4NoGBP++BHL+f3kdpNrxO ME2STUKAYIZSzlcFg968d+KBls63Z5ECCg1taBnNYzhV/g==; 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:To:Date:Message-Id:Subject: Mime-Version:Content-Transfer-Encoding:Content-Type:From: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=Xp8AgJKmuN05Gekeslyix72IGuufAHWs2hv1vmY6lng=; b=c39FC3p/lKDDdjhgr2qLMLhXK9 GxXDM6hP5gauM8npMyNLXifn58wWipIAkujmWSzKAWFc9Q5MAHGXNHKl4sAHSh6Zam+TVlxjsIr3S AePN+0ZiFuJSmmDlKggNCbJVh5ZiaOJgZoSLyUJPUabaVbex8P4QHp9aDR+mxN2DfIyVJ8fX3lU4v 4UMD5rhHCrMHHp9Hm/wOPwwraJdouKjjXPKJCoryUyhmJSrGcoTyKFb30nE7nS0oheaJikIiel4i4 sdKL6B2SIBjGjEXIvUbqo1na+LUd/nhu7jAK/4JG4KC4Vq7PmGl6SvoaWJPiekKqoOa50qZHb+KNC XwJQ41NQ==; Received: from authenticated user by zero.zsh.org with local id 1lVN4v-000JJl-HN; Sat, 10 Apr 2021 23:31:49 +0000 Authentication-Results: zsh.org; iprev=pass (mail-qk1-f173.google.com) smtp.remote-ip=209.85.222.173; dkim=pass header.d=dana-is.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=dana.is; arc=none Received: from mail-qk1-f173.google.com ([209.85.222.173]:36530) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lVN4g-000J5M-M2; Sat, 10 Apr 2021 23:31:35 +0000 Received: by mail-qk1-f173.google.com with SMTP id c4so9678435qkg.3 for ; Sat, 10 Apr 2021 16:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=Xp8AgJKmuN05Gekeslyix72IGuufAHWs2hv1vmY6lng=; b=fQ8uDkLlD69kop3Q8G2LLZQPJu71dHlCtfOvxuzZMndmj7hSFfXNPD8NQKG6/gc0Qd tvvxpHlaaQDsbFyTsBw51IF7u+SxPACBp2pSA7BNMtRGEuUf8V43RZwUzoOrTWrRVJVj ue3FPBouata2YNmdKXvh0lUXgr902FUKoiBN+MDq/vRIYBDfHB32KRdf5EMFJHT5CyMi AHv+ufvnKHqORpav3X2nm2NWckg9PCe/hcFpgg22OmNaNshKcxo9HhrP2d7fb2iNGI2t weSbVWhRdj7ywiO1ZsH3GhFV7vpbnyMj/C6/9POJ15jdKOop3wcY3G4opyNatJ54fcW0 CNQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=Xp8AgJKmuN05Gekeslyix72IGuufAHWs2hv1vmY6lng=; b=s5VwDVkbXVoxcs8QEOxvvMKp98bLHkC0L+L6pVP3hrHtQ3FQsSg7xXGcfQc8HXijQd KScHuXFGEcWVwzcndE8hL621VXTtO/cO6/2Z+PypvH5MsDpdm68v4Mb67ib0mrcv5bQv 7VJFDCmIRtQRmFNeTxvSOZfKtGEHaa40QqlGG+Whx+UNjczfK89U5BCyrPBI+pfVBLQy Y77Zty8rqElO3GmMSSlV87LcBjTwK+0CdQG/tYJmjB3MDTyJUuKGrzAhLBIEnt3fUv0v Xig1H3kxloU83taUmor19H0vLWE8vfCrl7fDBLTRBMysnCBCGNd+/TCH09UfHy8C1fNd oy5Q== X-Gm-Message-State: AOAM533+/bZ/JuRmy1PacHr/leBg1JdVyOvmqEOql+dVhoQniRqcXVHc Hl4bgssYsyCzFzAq3PrUrf+dKbbShS5f5CiH X-Google-Smtp-Source: ABdhPJz+GUq3t1i1AlvXonwdxgLmlX+IvNKQZBxGghOx2ajrBVPULJt1KXskYihdsSIRikXmkd/f3g== X-Received: by 2002:a05:620a:3c1:: with SMTP id r1mr20359788qkm.339.1618097493570; Sat, 10 Apr 2021 16:31:33 -0700 (PDT) Received: from heartswap.lan.dana.is (173-17-84-59.client.mchsi.com. [173.17.84.59]) by smtp.gmail.com with ESMTPSA id h65sm3847403qkd.112.2021.04.10.16.31.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 10 Apr 2021 16:31:33 -0700 (PDT) From: dana Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: [PATCH] Document imperfections in POSIX/sh compatibility Message-Id: <7FD930F4-37CD-402B-9A06-893818856199@dana.is> Date: Sat, 10 Apr 2021 18:31:31 -0500 To: Zsh hackers list X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Seq: 48491 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: 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.