Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15524 > unrolled thread

Re: -e test description in the GNU Bash 5.0 man page from 7 December 2018

Started byAndreas Schwab <schwab@suse.de>
First post2019-10-21 11:11 +0200
Last post2019-10-21 11:11 +0200
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: -e test description in the GNU Bash 5.0 man page from 7 December 2018 Andreas Schwab <schwab@suse.de> - 2019-10-21 11:11 +0200

#15524 — Re: -e test description in the GNU Bash 5.0 man page from 7 December 2018

FromAndreas Schwab <schwab@suse.de>
Date2019-10-21 11:11 +0200
SubjectRe: -e test description in the GNU Bash 5.0 man page from 7 December 2018
Message-ID<mailman.1356.1571649090.9715.bug-bash@gnu.org>
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:
>
>        -e file
>               True if file exists.
>
> When "file" is a symlink name to a non-existing target, the -e test fails,
> 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.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web