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


Groups > gnu.bash.bug > #15524

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

From Andreas Schwab <schwab@suse.de>
Newsgroups gnu.bash.bug
Subject Re: -e test description in the GNU Bash 5.0 man page from 7 December 2018
Date 2019-10-21 11:11 +0200
Message-ID <mailman.1356.1571649090.9715.bug-bash@gnu.org> (permalink)
References <6f5fd3b2-2e3b-4730-b2d8-50b89e9e3085@gmail.com> <mvmd0eqa2f8.fsf@suse.de>

Show all headers | View raw


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."

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web