From: "Bart Schaefer" <schaefer@brasslantern.com>
To: ZShell Users <zsh-users@math.gatech.edu>
Subject: Re: finding symlinks without target
Date: Fri, 23 Jan 1998 09:10:30 -0800 [thread overview]
Message-ID: <980123091030.ZM16856@candle.brasslantern.com> (raw)
In-Reply-To: <199801231642.IAA27762@shell10.ba.best.com>
On Jan 23, 4:42pm, Bruce Stephens wrote:
} Subject: Re: finding symlinks without target
}
} schaefer@brasslantern.com said:
} > (Why isn't there a glob qualifier to chase links? **/*(@^.,@^/) would
} > appear to be perfect, but doesn't work.)
}
} There is, isn't there. The - seems to be right, almost.
Indeed. I missed that one when scanning the zsh info (probably because
I was looking for a description that used the word "chase" as in the
CHASE_LINKS option).
} How about
} **/*(@-^.,@-^/)
}
} Meaning those symbolic links whose referents aren't files or directories?
I should have realized before that this won't work, because that's an
-inclusive- "or" and what's wanted is an -exclusive- "or". However,
this appears to do the trick:
echo **/*(@-^./=%p)
All symlinks that don't point to files, directories, sockets, devices,
or named pipes. Whew.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
next parent reply other threads:[~1998-01-23 17:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <199801231642.IAA27762@shell10.ba.best.com>
1998-01-23 17:10 ` Bart Schaefer [this message]
1998-01-23 17:46 ` Bruce Stephens
1998-01-26 4:41 Paul Lew
-- strict thread matches above, loose matches on Subject: below --
1998-01-23 15:34 Niall Smart
1998-01-23 14:47 Sven Guckes
1998-01-23 15:12 ` Bernd Eggink
1998-01-23 15:26 ` Bruce Stephens
1998-01-23 16:00 ` Bart Schaefer
1998-01-23 16:42 ` Bruce Stephens
1998-01-23 16:47 ` Peter Williams
1998-01-23 17:51 ` Peter Williams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=980123091030.ZM16856@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).