[pkg-netfilter-team] Bug#913811: Bug #913811iptables

Ron Lovell ron163264 at gmail.com
Thu Nov 15 23:33:10 GMT 2018


I still remember the first time that one bit me: "[ -e path]" fails if path
is a dead symlink. There are other pitfalls testing symlinks.  Some idioms
I use:

Does path exist?
[ -e path ] || [ -L path ]

Is path really a regular file?
[ -f path ] && [ ! -L path ]

A directory?
[ -d path ] && [ ! -d path ]
-- 
James Ronald Lovell <ron163264 at gmail.com>
Huntsville, AL, USA
A distributed system is one in which the failure of a computer you
didn't even know existed can render your own computer unusable.
-Leslie Lamport
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-netfilter-team/attachments/20181115/b19b4617/attachment.html>


More information about the pkg-netfilter-team mailing list