Path: csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Andreas Schwab Newsgroups: gnu.bash.bug Subject: Re: -e test description in the GNU Bash 5.0 man page from 7 December 2018 Date: Mon, 21 Oct 2019 11:11:23 +0200 Lines: 29 Approved: bug-bash@gnu.org Message-ID: References: <6f5fd3b2-2e3b-4730-b2d8-50b89e9e3085@gmail.com> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: usenet.stanford.edu 1571649091 16683 209.51.188.17 (21 Oct 2019 09:11:31 GMT) X-Complaints-To: action@cs.stanford.edu Cc: chet.ramey@case.edu, bug-bash@gnu.org To: Marco Ippolito Envelope-to: bug-bash@gnu.org X-Virus-Scanned: by amavisd-new at test-mx.suse.de X-Yow: Civilization is fun! Anyway, it keeps me busy!! In-Reply-To: <6f5fd3b2-2e3b-4730-b2d8-50b89e9e3085@gmail.com> (Marco Ippolito's message of "Mon, 21 Oct 2019 00:31:41 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 195.135.220.15 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <6f5fd3b2-2e3b-4730-b2d8-50b89e9e3085@gmail.com> Xref: csiph.com gnu.bash.bug:15524 On Okt 21 2019, Marco Ippolito wrote: > In the GNU Bash 5.0 man page from 7 December 2018 the -e test is > documented as such: > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -e file > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 True if file exists. > > When "file" is a symlink name to a non-existing target, the -e test fai= ls, > and this may be surprising from just reading the documentation. It also says: Unless otherwise specified, primaries that operate on files follow= sym- bolic links and operate on the target of the link, rather than the= link itself. Andreas. --=20 Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint =3D 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D= 7 "And now for something completely different."