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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32136 invoked from network); 5 Apr 2023 16:24:53 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 5 Apr 2023 16:24:53 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1680711893; b=qWubCmifrztqzJ85NpJkPGJ0hNTrhqppxI2amStIN8vtyZy4ZTtZO8Oml9Mr5RqZxfvdSM7Wnn mVC4tWrFSa1+bDFoqq8+yeBaOdcjfgSTb6HwlZXxllWx5yk+EOJYsY17ofTTmbaL/GDkBd3uHC uBXMa7ifNxqQxCObch/9jajiI8J758A54/HepE3GAbHEoyiQov5NUznIS21BMkCNfgAe3ysoqB dL02lDl6X2rHNRm4r34EmOgUh9wnrQz3IY4m04lYUPkosfhkfF4qg9SDy55Xx79SARGKkT6kg1 1cLjGolYzDLxBBXKl+JxGKxUTzLgLP1gx9MBsKzRV4vWuQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (snd01010-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.26; dmarc=none header.from=kba.biglobe.ne.jp; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1680711893; bh=ZibFSnkzhnhpjz3IsMJ4dmF+gkfsduIsl85Lk3uY08A=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Message-ID:In-Reply-To:To:References:Date:Subject: MIME-Version:Content-Transfer-Encoding:Content-Type:From:DKIM-Signature; b=FUylIcUE6YAbiZe2R5rXCxermnn1U0Mh0Uz5N7yKk4tNRSfkN4Tjqq8xHXz/K3z056tv5cHs+b 6YeRjx6O1ijkYKJ6ZEsoncwjfpTMN837M/6qLZ+gLYpFNr3ACr26DHOBeMF8E+pq4kUh1qtuSv cbm5zzCJYs+7F7jDDIrPJmlwm55KRq63vzeQEuksjNLWpcXMMV2RkHJPkaGF7a8qMaJbEZ1IlE e8QFFqN0cEZIModDp6mqEBA/25ktAF10iK+rXfTByJxNpjphHa5O2Cijd8UP8wfzIQh4bBYnoA 9V+ofs38G8ImtpyhzwkrvoY20fToqBSGOd9k/ICwKFvuqg==; 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:Message-Id:In-Reply-To:To:References: Date: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; bh=h4Qy5sRd0qfYhxudazgD4hsg5LMLuM99XmIcwtRTAIQ=; b=n3sHnCAuc3fG+fAzmT3+rPaPdH S6uoaAGXxYAE4k+QD0NDXncCbIkNc0ukaPHyP+l/qHtUYS6P/waVsJ6OzrUDdwxlYi8wB/lWVog1E KNdzhzjSegJWNg7zQV1uo1t5SBVIq7Y45T4zagZ31BcFVN/FyUBN21FY+ONzzDVLOPFZ6dChmURME KbxwGDJG7Txmiex2H5zlehx1LAbe8onsGkkE5Bn91UX+dcOlWt3UpxlsgGNdwHG6+qkKKAVP7gZju hWXCjRmHHxdLjIwXDiUNiOZhyVVuPZTrGonEWwickMQ/Qz/7YtvYJWc1+jkaRhygN1Qc8dn45UnKv ISzitmeA==; Received: by zero.zsh.org with local id 1pk5wK-0001YL-0r; Wed, 05 Apr 2023 16:24:52 +0000 Authentication-Results: zsh.org; iprev=pass (snd01010-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.26; dmarc=none header.from=kba.biglobe.ne.jp; arc=none Received: from snd01010-bg.im.kddi.ne.jp ([27.86.113.26]:1633 helo=dfmta1026.biglobe.ne.jp) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1pk5vl-0001EI-5Y; Wed, 05 Apr 2023 16:24:19 +0000 Received: from mail.biglobe.ne.jp by omta1026.biglobe.ne.jp with ESMTP id <20230405162409948.BJFW.30543.mail.biglobe.ne.jp@biglobe.ne.jp> for ; Thu, 6 Apr 2023 01:24:09 +0900 From: "Jun. T" Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.2\)) Subject: Re: ksh compatibility: initial value of $_ Date: Thu, 6 Apr 2023 01:24:08 +0900 References: <2A0716F2-F80B-4357-87AA-0A9881A52CEC@kba.biglobe.ne.jp> <24885-1680656615.101426@YPd-.5KmN.pkOW> To: zsh-workers@zsh.org In-Reply-To: <24885-1680656615.101426@YPd-.5KmN.pkOW> Message-Id: <75B30F82-6BA8-462B-BCD6-A23319914119@kba.biglobe.ne.jp> X-Mailer: Apple Mail (2.3696.120.41.1.2) X-Biglobe-Sender: takimoto-j@kba.biglobe.ne.jp X-Seq: 51630 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: > 2023/04/05 10:03, Oliver Kiddle wrote: >=20 > "Jun. T" wrote: >> diff --git a/configure.ac b/configure.ac >> index e6ced85d9..d33ea6945 100644 >> --- a/configure.ac >> +++ b/configure.ac >> @@ -1,4 +1,4 @@ >> -dnl >> +dnexe >=20 > Is that part of the patch intentional? Oops, sorry. >> +[for zsh_cv_proc_self_exe in /proc/self/exe /proc/curproc/exe \ >> + /proc/curproc/file = /proc/self/path/a.out no; do >> + readlink $zsh_cv_proc_self_exe >/dev/null && break >=20 > Given that you're ignoring the output, test -L is likely more portable Thanks. and: > 2023/04/05 18:00=E3=80=81Oliver Kiddle =E3=81=AE=E3=83=A1=E3= =83=BC=E3=83=AB: >=20 > zeurkous@blaatscaahp.org wrote: >> FWIW, OpenBSD test(1) says-- (snip) >> Note that last part. Is "-L" actually more standard? (Even on other >> *cough* Unices, me's always used "-h"). >=20 > Any system I have access to appears to support both. The other BSD's > also have the same recommendation and on that basis, you're probably > right that we should use -h. On OpenBSD and NetBSD, the manpage says -L is for compatibility and -h is recommended. But on FreeBSD, DragonFly and macOS -h is for compatibility and -L is recommended. The source code of test command for OpenBSD: https://github.com/openbsd/src/blob/master/bin/test/test.c line 113: {"-h", FILSYM, UNOP}, /* for backwards compat */ So I guess the manpage for OpenBSD (and NetBSD) is wrong?=