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, sch...@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Reply via email to