[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-dev
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog kde5-functions.eclass kde5.
From: Martin Vaeth <martin () mvath ! de>
Date: 2015-06-28 16:03:18
Message-ID: mmp5s6$bbj$1 () ger ! gmane ! org
[Download RAW message or body]
Dan Douglas <ormaaj@gmail.com> wrote:
> for x in *; do
> [[ -e $x ]] || continue
> ...
> done
You should also test for $x not being a symlink.
Otherwise you can miss the corner case that you have
a dead/unresolvable symlink called "*".
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic