From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13654 invoked by alias); 19 Aug 2013 04:13:41 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17940 Received: (qmail 13309 invoked from network); 19 Aug 2013 04:13:37 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at spodhuis.org does not designate permitted sender hosts) 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=; Date: Mon, 19 Aug 2013 00:13:27 -0400 From: Phil Pennock To: Bart Schaefer Cc: zsh-users@zsh.org Subject: Re: Dereferencing a symlink...or that alike... Message-ID: <20130819041327.GA22326@redoubt.spodhuis.org> Mail-Followup-To: Bart Schaefer , zsh-users@zsh.org References: <20130818024002.GC3129@solfire> <130817220559.ZM3201@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <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