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 17539 invoked from network); 24 Aug 2021 17:30:48 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Aug 2021 17:30:48 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1629826248; b=Svap+wKDFIRRXv4zJzg25Oa3WenS5lkogVzB7EIEIkPlGiuTPqMToEOs32GAVGO2/IPteAV5eR zKIUr911oDspmKrp5WSmNCpTP4EgfM+FwC0A3O21dV1ohqFHXauJ40diNjSNFrz/9f8ToyZp+q WDEjpL59keHvpkECwHYIrRdM1szZDX8Esd1ooO1gzZGzX6BE7blh2+j3fUasp++zwXS/qjufUa Kk0Rqf3kwI7oilloEAFve9SF2HdS4KJxR+7orHjD9hh+02Jas0tz3FvbZwz8l66G4aD9vniUHP u0D5uvw9cHEhebvDFhbdhybNES9t8PP9cdheHf8Sb9gJlw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f170.google.com) smtp.remote-ip=209.85.219.170; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1629826248; bh=kBBK8sdMDNLaeVMazlcHzbiKhrjZJ2i0NqN+4JnxOeA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=dmLWVnja1r/8U+FRQ+1H8lisTQoxk4O86PZ79S4JH5J3PKfzngPB7YikdCQIjhi6PMoODUbyDR MMgOzYxSkqWPtg194ciBr5ihrOovvQnvSTfDbuv3i+v4NsqEfQxAHowzKdtEh1bfgTzMHcEuE7 b5AEirOdAmQ/T8l9+1lAqpR8AdbQ636J1pgyAukJIl78kPg0tdEPa1vGgiH5kxsz8SiXD6euSM ZbgUtHybz+BmgCWAT6C9PfnKi6BNu1IucL4YEB76ZIqg6V3L5zxFsvjdzTp3WYX8aRxSK9si28 3Qa2EsTW3E2+zVWispwcfzrCLUmQSh1S85MLqWckXFVkeg==; 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-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=kBBK8sdMDNLaeVMazlcHzbiKhrjZJ2i0NqN+4JnxOeA=; b=rNzG1Ib4oNNqIH26UsL6z1bKZu YAzlNrHFKGaxyNfUtqGoHqDBLtOMluJwbEmk8IMXYMYCs4+6fPjH0cNvCd17Lp1N2PzsmAFTmO0i2 COCv0C3phlvEgrUL8SWiPoAcMepcxkVwHVqTt6pi1I1EFSfTCI7BvG5Lqy6x5RbDixNYRq3N4x4Wn mtSbkMpOz6fxTEe0RC2IubZOcjmATDZKo0TvXfP25nnkkMfYvZ6A5Xn8MwwpvRdbNDXw6FKxzQdHs SfDMc3lEsTvA9IROvcoKyRpkm2iAx3xBipWqBLxcYfRfpdaeECde7bUI3aGOdxTHdfKv3HryFOBm4 wmTrk7wQ==; Received: from authenticated user by zero.zsh.org with local id 1mIaG7-000Br5-IB; Tue, 24 Aug 2021 17:30:47 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f170.google.com) smtp.remote-ip=209.85.219.170; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-yb1-f170.google.com ([209.85.219.170]:40947) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mIaFX-000BWg-56; Tue, 24 Aug 2021 17:30:12 +0000 Received: by mail-yb1-f170.google.com with SMTP id i8so42545758ybt.7 for ; Tue, 24 Aug 2021 10:30:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=kBBK8sdMDNLaeVMazlcHzbiKhrjZJ2i0NqN+4JnxOeA=; b=Z3RxYpMA+T3BqZHdMHvBB1E446jgAoiSGtxeThy/nuHxC0rr3FpknjAwNLByfHOjiQ bdMujsYGwNozZiCI0PwoyFY4MJpBx17tIkABIowpMfpoT8bh00yQwP1CGauEkxlV9EGW yjpgT68qAfzqSfC2poRqhkO62vS+eIWAozgh4mDB5O04Z68Ow5PiRS80lbxInyplB33E q571AAyWUMxQkXgYaTzIiqEKMCGwTzKsVUC6RnZMvKoalBe8a7teBcIOZwhZU4Bwnl0U B6EnzmLul9nmXRPDmG13dyhI5MeAsRqn5uX92RcID8AX0T1ADX7JPJmwo4PUaFHoQREc 03PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=kBBK8sdMDNLaeVMazlcHzbiKhrjZJ2i0NqN+4JnxOeA=; b=sbiuQKosuElg+lKRJ2dTIA//avc9mTV9ewCXRccnNn6VWyhPjzHk4xCPj/X3A3h5fN bvT+zh29uifthpetL9D3ZppCtkCxFMuJ3aPjZrem3M7Q3KiyYjJEdaRQZ1nfvlS4mIa0 8f2BROXuTgE1KkD9XPLjrHRj6aY6KXcZuEV1IgTlbKd9oETlhm8EyeugVS7oMSmqaFeo 9jBlqEo2D1U0/uq41YJKPtCFjqtrfI8ox/65zX7x5S5iqJOzMF32yiR3gGLTFDFdrT6c r4nSyQCWKwWYz+/5RnpXfMSCxrcGp7MdWYb7vdyFf9g8/6mu/zubNHN8A2zV+/nL2Pdg 1CfQ== X-Gm-Message-State: AOAM532lADRJUrczn13eC6oxJazgxdcrGWzqshzLcbcv0QqUQFKQq9aZ vr7fxkPrvYNYNJOJntYTuT/C2rrJkhnUNcmtb1H4+WS429E= X-Google-Smtp-Source: ABdhPJyIfyfsb8sFRW7asF1dgjZVMCjyrjI3YLIdytf6uM7CJ5ykILK7TXus0bDQhqoh/6CGP87T7A2vlJ83pIxZqK0= X-Received: by 2002:a25:d8d2:: with SMTP id p201mr6236760ybg.69.1629826209538; Tue, 24 Aug 2021 10:30:09 -0700 (PDT) MIME-Version: 1.0 References: <20210824162330.GA3017045@cventin.lip.ens-lyon.fr> In-Reply-To: <20210824162330.GA3017045@cventin.lip.ens-lyon.fr> From: Bart Schaefer Date: Tue, 24 Aug 2021 10:29:58 -0700 Message-ID: Subject: Re: [BUG] ignored trap and subshell To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 49303 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: On Tue, Aug 24, 2021 at 9:24 AM Vincent Lefevre wrote: > > However, with "emulate sh", ignored traps should still be ignored > in the subshell according to POSIX, and zsh 5.8 fails do conform: "emulate sh" is NOT the same as "ARGV0=sh", and is never going to be. We make no representation that "emulate sh" will enable all the same standards behaviors as using "sh" as the command name. That said, it might be possible to add control of this behavior to the POSIX_TRAPS option, in which case it would be covered by "emulate sh".