t***@kergis.com
2024-07-23 14:16:46 UTC
FWIW, the current test.1 man page could, IMHO, be improved by
mimicking POSIX wording i.e. by replacing "if file exists" by the
corresponding variant of "if pahtname resolves to an existing
directory entry...".
Context: I wondered how to test that a file exists in all cases, that
is, if it is a symlink, testing that it is pointing to an existing file,
and the current description of "-e":
-e file True if file exists (regardless of type).
let me wondering: what "file" is supposed to exist? The symlink by
itself? or what it points to?
This explaining that.
mimicking POSIX wording i.e. by replacing "if file exists" by the
corresponding variant of "if pahtname resolves to an existing
directory entry...".
Context: I wondered how to test that a file exists in all cases, that
is, if it is a symlink, testing that it is pointing to an existing file,
and the current description of "-e":
-e file True if file exists (regardless of type).
let me wondering: what "file" is supposed to exist? The symlink by
itself? or what it points to?
This explaining that.
--
Thierry Laronde <tlaronde +AT+ kergis +dot+ com>
http://www.kergis.com/
http://kertex.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Thierry Laronde <tlaronde +AT+ kergis +dot+ com>
http://www.kergis.com/
http://kertex.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de