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 24660 invoked from network); 31 May 2021 22:55:28 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 31 May 2021 22:55:28 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1622501728; b=gACoSDBHPMHJnwKK9Sv3BSdsXIjlZJSo5CDveaDo184ARMoi+YhMeIaSMMYwABaybXsOKmwunE i6+EQ/InaGKOmtFtHtZHz7tQgFeE7hsmzGUx1FeCgJl6j4GGtNLz+LL5vJgnFS2MzznXBYBik4 H4Bzl3v58crUzqY9d4eo3DBKycdqazU1i9stfZcGInlacD7AFj/5lpqzcdCUZxR6vOqVosohcy rBZkmd5JJAJgcTtetLS0l+pGVCYvt9STxedt5JgYtc3T14rsZgsokkmr/kyYb+QSFz3CoJFsij v1P5eMGd485nbmhvdM/9+1yx/CWhfEWWGqSGQkH8uv/I/w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oi1-f175.google.com) smtp.remote-ip=209.85.167.175; 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-20200801; t=1622501728; bh=UQYGt3DzpTZVDt39eyGeZvhcktvMKKabCM9jRoL2bZE=; 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=bs08BDgwWYpomoSxOT4VpLbto8MC2AncT+RGJP8nl8DXjwhbQujW/VainTJhBVJJtlG5Sj+TKl pcPD9llNturadvQN93zrrXT9sHXIxIJXIVKTnl6881fQ0jS7KgnEcURpiakrC5Zixh8j4rhz7j TmsGHg46frTDzlS70dU/8gifDCpw7SKf07RXehdPd0f9/qAmnRe4CB+un/B4hz9LxURyp9Sm43 jYA2CuckPX/ILqX/er0bm7sZK8c6+4ro0Osc71iCVj1rhGDkj8pLUh2raGzuAy+GrYZkp/0ZcG PhhGe5OxmpDkFEmOhyzri5811NkJwQRgzMbRUx3Tou1pEQ==; 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: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=ZyHfvtC4qsy8zBFxw9ZUQ7In6ev4IkVF0P5zISSs7XQ=; b=qUDPlgeUdTN0fzWZVjuxSy/JNz fHABxlH0QbMDlAr+Lx51oIBz0RQsvG889JaH0TMQ1SO2YQ67tcEfDymynS5HXUPho1Hp9KgLn7c1w bL6tDl9xLHwR17lepNTpctc6ZRCWqXbLt7Fy91FeRr2xNSjShXk3iVRLEnOy+sOnJCtecJHFSqM5Q FYzVcqEHS+LX8nygafV+HRRSjaIvgKOJ14DP0yuUwelEWnh9xJpSRL1ghpkCGeNAtA8k3VWTF9DXb PwBqvCJyyixuA0MMBprqtIIY2j1k9C+glOy8ZcJasXne5o3KFaQUgoFbeLXX7Zh6Ub/mDna19GtQ6 GJJvlIMQ==; Received: from authenticated user by zero.zsh.org with local id 1lnqoh-000Cgu-W6; Mon, 31 May 2021 22:55:28 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f175.google.com) smtp.remote-ip=209.85.167.175; 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-oi1-f175.google.com ([209.85.167.175]:40531) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lnqoE-000CNo-Lf; Mon, 31 May 2021 22:54:58 +0000 Received: by mail-oi1-f175.google.com with SMTP id s19so13645693oic.7 for ; Mon, 31 May 2021 15:54:58 -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=ZyHfvtC4qsy8zBFxw9ZUQ7In6ev4IkVF0P5zISSs7XQ=; b=DWqiS3fLPjzqam2E9YzWvYhqvS+lF7JiupauPZn2UFeXTFUi9IYlABDhBaxaCOb/G+ Zn7VqUTK7IMgMEgBLli4r5hFHsdCnhaPbn9kmNRHCKjzGF3zfYcBe9lCdZCLmP0qlbOB AbgyMOAKpyh+xWfTEgvuzLVk/UG5vx4pANw37o6r4+QcNgBoJ3c6jfkg0ZOrtq7/1/6s ud+DopIU/hygVhN8B2Y2QAa2Z+dYgdEuQ+cVXcFmlvXw39w68LJgAsPAp4T4qo0CorTw cVlWYMU0GxN8sjNIFVcqkcmkxS21F8Ca6gIB9B9gv2PwNuWwKfyqfAOVXLc9lmiRiEZA h2Ng== 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=ZyHfvtC4qsy8zBFxw9ZUQ7In6ev4IkVF0P5zISSs7XQ=; b=r/rIwqO46C+MhPg64YK5C/Jz5JwianW856Z73snwq+meXnTOPoFndv7tu8MUVj1Occ IGxsAzCLRxZhGWUnSYktynpPspmnRIvL++NJFNo7MgOooXOsdE3X+q1LAFdcY+h+LfvU UDt2ERUcj6eEBda5x7H47HIY3tLQ+L/SD3hDwKN4lP9KEHNAW6iC62RnGJenqSED3mRM mlOyJ3tezPRuWHfFE9ZWJHxlcXCQzSt+DLHYAgHVV/X+SOJKVOmWEXhFLt2MT2wUk+do aNqHrbKWGIQg37NUwj1ebKt2E3UuVcM+Wqj2z03fW2MJDhd1XLMnY3bc6kuIj8YSGZ1a AiSQ== X-Gm-Message-State: AOAM530DRmjEDv1LeENYG3aqNQnrd/jF0xyn3QC8BwDydZZA/N00SUJa spa1iGrU6Z3PsQVke+K8/8a7excYW3i94wPcXun5u+6TX4Gppg== X-Google-Smtp-Source: ABdhPJyadGLSBW14MKxrXBuoXeyv5gi+zJzN4ohrt2V+0PR/6l3NCqViuvZ8Ayj4S7VnAxPHBg8LWvHEPBSHnsiYk2o= X-Received: by 2002:a54:4f99:: with SMTP id g25mr841698oiy.132.1622501697079; Mon, 31 May 2021 15:54:57 -0700 (PDT) MIME-Version: 1.0 References: <92d2b09c-9559-7085-a521-29714e38f02c@iDaemons.org> <20210529114108.GA25290@tarpaulin.shahaf.local2> In-Reply-To: <20210529114108.GA25290@tarpaulin.shahaf.local2> From: Bart Schaefer Date: Mon, 31 May 2021 15:54:46 -0700 Message-ID: Subject: Re: [PATCH] Set TMPSUFFIX=.zsh in edit-command-line To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 48975 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 Sat, May 29, 2021 at 4:41 AM Daniel Shahaf wrote: > > Akinori MUSHA wrote on Fri, May 28, 2021 at 22:35:08 +0900: > > This patch makes the name of a temporary file to have a .zsh suffix > > The patch looks good to me, but I haven't time to review or > test it properly, so I'll defer to others on that. Unless there's an internal bug with TMPSUFFIX, I can only think of one way this patch could go wrong, and it's pretty obscure: Suppose I have a "smart editor" that attempts to decide what program to run based on file extension (opens .xls as a spreadsheet, .doc with a word processor, etc.) Suppose further that this "editor" opens files ending in ".perl", ".zsh", ".sh", etc. by running the corresponding interpreter. Oops, I've just executed the command line I meant to edit. This is not entirely far-fetched, if you're on a Mac and have XCode fully installed, "open /tmp/blablah.zsh" may actually run zsh. Is this worth worrying about?