Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jul 2002 23:38:43 +0200
From:      Cyrille Lefevre <cyrille.lefevre@laposte.net>
To:        Johan Karlsson <johan@freebsd.org>
Cc:        arch@freebsd.org, dd@freebsd.org
Subject:   Re: importing readlink(1) from OpenBSD
Message-ID:  <20020704213843.GA10505@gits.dyndns.org>
In-Reply-To: <20020704194314.A52250@numeri.campus.luth.se>
References:  <20020704194314.A52250@numeri.campus.luth.se>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 04, 2002 at 07:43:14PM +0200, Johan Karlsson wrote:
> [cc: Dima, ports maintainer]
> 
> There is an open PR about it: 
> http://www.FreeBSD.org/cgi/query-pr.cgi?pr=bin/11092
> 
> Opinions?

readlink () { ls -ld "$@" | awk '/->/{print $NF;exit 0}END{exit 1}'; }

PS  : -f could be implemented using the following shell functions :)

http://groups.google.com/groups?as_q=absolutepath&as_uauthors=cyrille+lefevre

Cyrille.
-- 
Cyrille Lefevre                 mailto:cyrille.lefevre@laposte.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020704213843.GA10505>