From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 30188 invoked from network); 5 May 2020 22:12:06 -0000 Received-SPF: pass (primenet.com.au: domain of zsh.org designates 203.24.36.2 as permitted sender) receiver=inbox.vuxu.org; client-ip=203.24.36.2 envelope-from= Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 5 May 2020 22:12:06 -0000 Received: (qmail 9645 invoked by alias); 5 May 2020 22:11:56 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45786 Received: (qmail 25598 invoked by uid 1010); 5 May 2020 22:11:56 -0000 X-Qmail-Scanner-Diagnostics: from mail-ot1-f42.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25801. spamassassin: 3.4.4. Clear:RC:0(209.85.210.42):SA:0(-1.9/5.0):. Processed in 1.713618 secs); 05 May 2020 22:11:56 -0000 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.210.42 as permitted sender) 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:cc; bh=M1FhEdWFmTGdoZWSErFgtYZO4Y0+M68gycT8NtZQ1Sc=; b=TgVeSvT8lIWsjstVwaOqe4gZ7k4nS5MyhNaOdrfsb8nBcKKe6IcHt4+aN7/JoM3AbA uR3Rf+Jjl/SbrqgqkgEZuGvDFTYMxFfnEZfiKxKWsZm/EkVjzrO2lzOm3pSRCmIRmG+3 rIZgjb476b3hyC6d+J0nY6xzTV/Mj67M38V9PE83nJsXvQxpDtTW3Z+KC6RYYM/FI1/Q pqmljJtSqnU9CDrjhzcMPN9MOFvQubhsXjptvCSqIAkvl1It5wqLT6TilUgo2Xu3AvE2 hDIwZd2eYkb1Y21THJuUsjhJHVNiLldtD5xd7JJhPWtWTLZyAdZ60AX1n5zJDlsEMDfb Zn2Q== X-Gm-Message-State: AGi0PuYViTWmO14CopIY3DJNYp22FjQ1U2ZBQEBZACNuingAYDwLwZV/ xx91IgLrd7Z2rRJNNBdIO8fbhFArLuCr2iV1DCH55Q== X-Google-Smtp-Source: APiQypI7n0ji8O2jcgjjb1YzOYOJ/MEKiK4G8T8XNdH6vWdSgZrASIF/u7bRYWxtqUjE7NtUTrBGz8oM96TVG1vZpQ4= X-Received: by 2002:a9d:6b11:: with SMTP id g17mr2179072otp.161.1588716680686; Tue, 05 May 2020 15:11:20 -0700 (PDT) MIME-Version: 1.0 References: <1563722540.4311.24.camel@samsung.com> <1565710707.5633.11.camel@samsung.com> <309829031.4459446.1587391766024@mail2.virginmedia.com> <20200503000658.6fddb904@tarpaulin.shahaf.local2> <20200503210618.5c639014@tarpaulin.shahaf.local2> <505277422.148264.1588581302888@mail2.virginmedia.com> <20200505000331.59294412@tarpaulin.shahaf.local2> In-Reply-To: From: Bart Schaefer Date: Tue, 5 May 2020 15:11:09 -0700 Message-ID: Subject: Re: Feature request: ZSH_XTRACEFD variable To: =?UTF-8?Q?Timoth=C3=A9e_Mazzucotelli?= Cc: "zsh-workers@zsh.org" Content-Type: multipart/alternative; boundary="00000000000066c1bc05a4eded03" --00000000000066c1bc05a4eded03 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 5, 2020 at 9:37 AM Timoth=C3=A9e Mazzucotelli < timothee.mazzucotelli@gmail.com> wrote: > After thinking about it more, do we really want to close the file > descriptors? > I mean, when assigning ZSH_XTRACEFD, the file descriptor it points to > must already exist, i.e. the users must create it themselves, explicitly. > We never implicitly create file descriptors for this feature, > so why would we implicitly close them? > Excellent point. Explicitly opened descriptors should be explicitly closed, except in some special cases of forked subshells. --00000000000066c1bc05a4eded03--