zsh-users
 help / color / mirror / code / Atom feed
* globbing based on symlink contents
@ 1997-06-18 14:43 Roderick Schertler
  1997-06-18 15:16 ` Zefram
  0 siblings, 1 reply; 2+ messages in thread
From: Roderick Schertler @ 1997-06-18 14:43 UTC (permalink / raw)
  To: zsh-users

It would be great to be able to glob based on the contents of symlinks.
(That's not already possible, is it?  I've been resorting to find.)

-- 
Roderick Schertler
roderick@argon.org


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: globbing based on symlink contents
  1997-06-18 14:43 globbing based on symlink contents Roderick Schertler
@ 1997-06-18 15:16 ` Zefram
  0 siblings, 0 replies; 2+ messages in thread
From: Zefram @ 1997-06-18 15:16 UTC (permalink / raw)
  To: Roderick Schertler; +Cc: zsh-users

Roderick Schertler wrote:
>It would be great to be able to glob based on the contents of symlinks.
>(That's not already possible, is it?  I've been resorting to find.)

It's not already possible.  And I think it would not be sufficient.
There will always be another way the people will want to glob.  The only
really general way to do it is to glob using arbitrary shell code as
the criterion.  How about a syntax like

linkmatch () {
  local a
  stat -L -A a $1
  [[ "$a[14]" == $~2 ]]
}
echo *(f{linkmatch}{foo*bar})

?

-zefram


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-06-18 15:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-06-18 14:43 globbing based on symlink contents Roderick Schertler
1997-06-18 15:16 ` Zefram

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).