* :A working like readline
@ 2016-01-27 14:41 Sebastian Gniazdowski
2016-01-27 14:50 ` Peter Stephenson
0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Gniazdowski @ 2016-01-27 14:41 UTC (permalink / raw)
To: Zsh Users
Hello
Readline apparently just reads what link point's to. :A does more,
gets where physically file is located, so if link points to location
that includes another simlink, it will be somewhat resolved it too.
Is there a way to do a basic link read with Zsh?
Best regards,
Sebastian Gniazdowski
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: :A working like readline
2016-01-27 14:41 :A working like readline Sebastian Gniazdowski
@ 2016-01-27 14:50 ` Peter Stephenson
2016-01-27 15:26 ` Sebastian Gniazdowski
0 siblings, 1 reply; 3+ messages in thread
From: Peter Stephenson @ 2016-01-27 14:50 UTC (permalink / raw)
To: Zsh Users
On Wed, 27 Jan 2016 15:41:39 +0100
Sebastian Gniazdowski <sgniazdowski@gmail.com> wrote:
> Is there a way to do a basic link read with Zsh?
Use the zstat interface.
zmodload -F zsh/stat b:zstat
zstat -A array +link $file
pws
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: :A working like readline
2016-01-27 14:50 ` Peter Stephenson
@ 2016-01-27 15:26 ` Sebastian Gniazdowski
0 siblings, 0 replies; 3+ messages in thread
From: Sebastian Gniazdowski @ 2016-01-27 15:26 UTC (permalink / raw)
To: Peter Stephenson; +Cc: Zsh Users
On 27 January 2016 at 15:50, Peter Stephenson <p.stephenson@samsung.com> wrote:
> On Wed, 27 Jan 2016 15:41:39 +0100
> Sebastian Gniazdowski <sgniazdowski@gmail.com> wrote:
>> Is there a way to do a basic link read with Zsh?
>
> Use the zstat interface.
>
> zmodload -F zsh/stat b:zstat
> zstat -A array +link $file
Seems quite reasonable (one thing, it generates a place when error can
occur, i.e. zsh/stat can be unavailable), thanks
Best regards,
Sebastian Gniazdowski
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-01-27 15:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-27 14:41 :A working like readline Sebastian Gniazdowski
2016-01-27 14:50 ` Peter Stephenson
2016-01-27 15:26 ` Sebastian Gniazdowski
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).