From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 21 03:49:49 2023 Received: (at submit) by debbugs.gnu.org; 21 Jan 2023 08:49:49 +0000 Received: from localhost ([127.0.0.1]:48016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJ9ZM-0003KP-MY for submit@debbugs.gnu.org; Sat, 21 Jan 2023 03:49:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:40452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJ1Xa-0006Za-Mg for submit@debbugs.gnu.org; Fri, 20 Jan 2023 19:15:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJ1Xa-0007gv-7P for bug-coreutils@gnu.org; Fri, 20 Jan 2023 19:15:26 -0500 Received: from mail.prvy.eu ([185.236.8.250]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJ1XY-0007yb-3H for bug-coreutils@gnu.org; Fri, 20 Jan 2023 19:15:25 -0500 Received: from unknown (unknown [192.168.254.1]) by mail.prvy.eu (Postfix) with ESMTPSA id D835B7F9EE for ; Sat, 21 Jan 2023 00:15:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=prvy.eu; s=20180701; t=1674260119; bh=ELM7nlvuMbnYITxmZho1/MOdRUHit+nWSB/CPeoENWU=; h=Date:From:Reply-To:To:Subject:From; b=o1dRljiIyaJiu6a8z07EMOnoLzRJYA1yYsESEcLwh5Uv8IGNPc3ABkO4u2SwqpwUR pm04aQI0K7wP0MohDurrggBvqSCva5pjtng19Vey6I328PrMUkNqk4VBldoG9rzNr/ WnQSJD1GvP6YQhbPmvEjnMbZWmfGxJAsLbke1MfmEabEgfKOhs3b+t/PsUrlJk7f8+ llrLmodzfPgTNkl6YU0UQ3B1A+fr3gZLoV2x8tgmd8p0Y4Nbu4ftzkmSw8pCUmL31j fypFRLwg2BcFabifMqqbmUcqRUh3U9WXkWBCv+jKMmKfNPxkQ/TVitnI05A18gXCbz RmlRplff1v3mg== Date: Sat, 21 Jan 2023 01:15:19 +0100 From: "Kaulkwappe" To: Subject: Bug in man page for the "test" command Message-ID: <5xng0h0bh.eGdhs8@prvy.eu> X-Conversation-ID: 0cvos0vxyd MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.236.8.250; envelope-from=kaulkwappe@prvy.eu; helo=mail.prvy.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 21 Jan 2023 03:49:47 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: kaulkwappe+0cvos0vxyd@prvy.eu Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Dear colleagues,=0A=0Athis might have been reported before (or not), but th= ere is a confusing description in the man page of the "test command:=0A=0A#= ##=0A-e FILE=0A=C2=A0 FILE exists=0A=0A-L FILE=0A=C2=A0 FILE exists and is = a symbolic link (same as -h)=0A=0A###=0A=0AThe problem here is the situatio= n of a broken symlink. When flag -e is used on a broken symbolic link, it f= ails. But when -L is used on a broken symlink, it returns true.=0A=0AWhile = this may be the expected behavior, it does not reflect what the documentati= on says. Because if -e fails on a broken symlink ("FILE exists") one would = assume that the same of course is true for -L. The correct description for = -L should be:=0A=0A###=0A-e FILE=0A=C2=A0 FILE exists or is valid symbolic = link=0A=0A-L FILE=0A=C2=A0 FILE is a symbolic link, whether broken or not (= same as -h)=0A=0A###=0A=0AKind Regards,=0AKaulkwappe From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 21 04:10:34 2023 Received: (at 60981) by debbugs.gnu.org; 21 Jan 2023 09:10:34 +0000 Received: from localhost ([127.0.0.1]:48057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJ9tS-0006B7-Fa for submit@debbugs.gnu.org; Sat, 21 Jan 2023 04:10:34 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:58095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJ9tQ-0006Ay-CH for 60981@debbugs.gnu.org; Sat, 21 Jan 2023 04:10:33 -0500 Received: from frontend03.mail.m-online.net (unknown [192.168.6.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4NzVvW0X0tz1s88q; Sat, 21 Jan 2023 10:10:30 +0100 (CET) Received: from localhost (dynscan3.mnet-online.de [192.168.6.84]) by mail.m-online.net (Postfix) with ESMTP id 4NzVvV5687z1qqlR; Sat, 21 Jan 2023 10:10:30 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan3.mail.m-online.net [192.168.6.84]) (amavisd-new, port 10024) with ESMTP id A_hljZ6ySVEr; Sat, 21 Jan 2023 10:10:30 +0100 (CET) X-Auth-Info: DdHtpgNKQ5892TQdGsrh8bWjMBfp2hzM7Mp2lXu2WqFeO5eGndo5ejdjsNeT4D8x Received: from tiger.home (aftr-82-135-86-211.dynamic.mnet-online.de [82.135.86.211]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sat, 21 Jan 2023 10:10:29 +0100 (CET) Received: by tiger.home (Postfix, from userid 1000) id 90FE315BA7D; Sat, 21 Jan 2023 10:10:29 +0100 (CET) From: Andreas Schwab To: "Kaulkwappe" Subject: Re: bug#60981: Bug in man page for the "test" command References: <5xng0h0bh.eGdhs8@prvy.eu> X-Yow: I'm in LOVE with DON KNOTTS!! Date: Sat, 21 Jan 2023 10:10:29 +0100 In-Reply-To: <5xng0h0bh.eGdhs8@prvy.eu> (kaulkwappe@prvy.eu's message of "Sat, 21 Jan 2023 01:15:19 +0100") Message-ID: <87zgac6ynu.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 60981 Cc: 60981@debbugs.gnu.org, kaulkwappe+0cvos0vxyd@prvy.eu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) The man page already addresses this: Except for -h and -L, all FILE-related tests dereference symbolic links. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."