Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Symlinks in recursive glob
- X-seq: zsh-users 23742
- From: Dominik Ritter <dritter03@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Symlinks in recursive glob
- Date: Mon, 5 Nov 2018 01:17:51 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=5d82n0MvpQ8jIcyhdqnQKh+SValk0BdVa4fzCS1dxZQ=; b=Ldi82FFEGv2JmGIb71OM8QtsEuKqYNxPiIFxk0BjQ/qPFZssPIiM+q6IRjWxdCHxK8 KEeYB7gucAYZUaFGrYnmetmDpDVyp/OWMANv2lvUy9TNeT1ZNzvYK5ArJZVtlWomAGGy OibHf5iMY82M3Ht3yfxtJCtmX1vHgu9Yv/8UoeoAeE3VNlmuBuR4VHXGMqpIHE4wUUD2 OKvfVzQhCmz+4+7zODJEKU5xIpKUxsCI2RyB+3W3V2b4JsH9uwaZ9mpqUcDugM8Ht7Hk kEH0Ux73RjcDPd8swh+LZwVQugtjwO+MmBamYP+JmY4GSia2EJpK7eLIC5wCNnvnz4Yw OR/g==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hi all,
is there a way to not dereference symlinks in a recursive glob?
Long story:
I want to search upwards for a file like
`print (../)#.shorten_folder_marker(:a:h)`, but that dereferences symlinks.
If I remove the :a modifier I get a relative path, which I cannot use as
well. The use case is that I want to truncate the folder to the point where
the .shorten_folder_marker exists. This may be a symlinked directory.
e.g. I have /tmp/test/1/2/3 and /tmp is a symlink to /private/tmp.
Both chasedots and chaselinks are turned off.
I've seen solutions to this with either using find or traversing the path
up manually.. Both solutions seem cumbersome to me.
Thanks,
Dominik
Messages sorted by:
Reverse Date,
Date,
Thread,
Author