tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
test.1 -> "if file exists" -> "if pathname resolves to an existing directory entry"
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.
--
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
Home |
Main Index |
Thread Index |
Old Index