Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Dereferencing a symlink...or that alike...
- X-seq: zsh-users 17940
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Dereferencing a symlink...or that alike...
- Date: Mon, 19 Aug 2013 00:13:27 -0400
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d201210; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=OuLRPQK1al2jgmyiDhaLXGEHC1psknTI4z7fzqg2dt8=; b=a2Ssz2AQuC2YAiU4iFSpjP/kq6slB5HeameLHxIAFTSvZsuyNvIprG6D4o+7zXQuDmbpcKXNVSt3d91eJtAurUKRK+QpBsRUXeCZWvvxic+il3Rq2Fq6l1khvMgxK7XXSyp5L2VFecn7u6pERkd9DrdEDgHQPXPUlghp7b3YYYY=;
- In-reply-to: <130817220559.ZM3201@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20130818024002.GC3129@solfire> <130817220559.ZM3201@torch.brasslantern.com>
On 2013-08-17 at 22:05 -0700, Bart Schaefer wrote:
> I don't know of any external utility that will print *only* the target
> of the symlink. E.g.
readlink(1) is part of GNU coreutils and is part of the base system on
FreeBSD, OpenBSD, etc.
% readlink etcetera
/etc
(On FreeBSD, at least, it's a hardlink to the stat(1) command, which
switches behaviour if argv[0] shows it was invoked as readlink.)
-Phil
Messages sorted by:
Reverse Date,
Date,
Thread,
Author