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 26506 invoked from network); 11 Apr 2021 19:18:28 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 11 Apr 2021 19:18:28 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1618168708; b=MAe5CBk6Kup9tLOcRATLVWzXgJ/LysKBsq1N24qgFaCTa1vfxCNaoJNE0k8C2DVsR4kixjJLPM HK1RfjLUVJD4/isNAEHBMaVuRyCYCSWe3lmN3g1cbmN2Ibt80hbkcyyzpjYAMD0RBVAb3K4H9H VOepDXZovNQ9vvJRIUCAN/Gf0wtrxJaS70GDD9JfP+Z0wWmA7qt+3ZlrmWw9ihW5xGi9sqa0Hm Z3eiHewLl+8B3fjgIMVSD0qtyh7MEsqQKCrdG3zFWpvnz069EFWETjHUyLnXv/1/yYT1mrNGy7 0IrX3ERy6F1Xs0OPqsX9thlJTk3buk5ukz2uGnvXyH3vQw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (relay10.mail.gandi.net) smtp.remote-ip=217.70.178.230; dmarc=none header.from=chazelas.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1618168708; bh=9uCDo3llpODEBrdYz8Ohgjb047PUOA24IArhtWPURoE=; 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:To:From:Date:DKIM-Signature; b=J7LZGzta5LwtPTeTQW7uMbNzW4XzCdlJy7N08POf4/YA0hVut64aqsZZzHwTxNxO5Ji3tmSAky LU/VdUORXm0IrB5bKXLvdNCjpUUmoa8SJNxHhhbNJOmkWTIScSt5mtw8dsTGbOat5iK4Y8jaMb dFfeKiXO5UuuAb9h7QU8V+Of3EjF/hph3NenTbMIkN5UP/gEF+t+mH+8gJoUfSVtVBXf/eewbu xmuoDdvZXLoNeXiF4Xod4n2Ls24aPiF+WfNQs2j4XLs23NiK/seLkPF+3SSLy3BqjaShEG1qg/ Dp7kxOgfK2J47Q+0uCSwvGqh4h++I1m9av/pyINYxAHttQ==; 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:To:From:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=QV7zOP9MRwwXKv4mbe/riNHtI/TiIR/T60K2SRCZAsU=; b=kS4nRdnz9eZYJ5u9CRZFlZv6C8 wLWk23Yiz9SwXKf4SFQVyHsBLY7nKidcUFm8yOUIcTRDy2/PbvVFe5JPj5zu0RFPGtNfKL0REzvCg 5tXLBseVcr86BtW+sIIlWQ3ru00E9Jfi/OuLsjENt5s8bsLrGV35mg32UwGCk2QsSFmFZdLm/J5wy VR0fJ7Kqml7AOwdFRPdhPdJ7dugmvhBOoSvF8AmTU8XRi/CCmPMc6jkBwK54Jk1IalxzK5wXTa5Nr B6/mKQHLlFZK9DnPOYVV6wZgxisDfpOBJS/lWttRtllh10QJSKXIH2LqGsWHfbYMLrXhAfx5qZVkA 0JkS/TGw==; Received: from authenticated user by zero.zsh.org with local id 1lVfbF-0002E6-DE; Sun, 11 Apr 2021 19:18:25 +0000 Authentication-Results: zsh.org; iprev=pass (relay10.mail.gandi.net) smtp.remote-ip=217.70.178.230; dmarc=none header.from=chazelas.org; arc=none Received: from relay10.mail.gandi.net ([217.70.178.230]:59141) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1lVfax-0001yQ-0e; Sun, 11 Apr 2021 19:18:07 +0000 Received: from chazelas.org (unknown [90.215.204.106]) (Authenticated sender: stephane@chazelas.org) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 1B2DE240005 for ; Sun, 11 Apr 2021 19:18:05 +0000 (UTC) Date: Sun, 11 Apr 2021 20:18:05 +0100 From: Stephane Chazelas To: Zsh hackers list Subject: Re: sh emulation POSIX non-conformances (no word splitting upon arithmetic expansion) Message-ID: <20210411191805.4sifipeo7so4wdnd@chazelas.org> Mail-Followup-To: Zsh hackers list References: <7FD930F4-37CD-402B-9A06-893818856199@dana.is> <20210411175726.hxnm33mxoska2tsm@chazelas.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210411175726.hxnm33mxoska2tsm@chazelas.org> X-Seq: 48500 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: 2021-04-11 18:57:26 +0100, Stephane Chazelas: > Some non-POSIX conformances I can think of ATM: [...] Another one: $ zsh --emulate sh -c 'IFS=2; printf "<%s>\n" $((11*11))' <121> While POSIX (beleive it or not) requires: <1> <1> Again, that's one of the cases where many shells (most ash-based ones, pdksh, yash at least) behaved like zsh but switched for POSIX compliance (even though that hardly makes sense). -- Stephane