From owner-freebsd-arch Thu Jul 4 14:38:52 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4448037B401 for ; Thu, 4 Jul 2002 14:38:50 -0700 (PDT) Received: from smtp.noos.fr (descartes.noos.net [212.198.2.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 378E743E42 for ; Thu, 4 Jul 2002 14:38:48 -0700 (PDT) (envelope-from root@gits.dyndns.org) Received: (qmail 46609281 invoked by uid 0); 4 Jul 2002 21:38:46 -0000 Received: from unknown (HELO gits.gits.dyndns.org) ([212.198.229.153]) (envelope-sender ) by 212.198.2.74 (qmail-ldap-1.03) with SMTP for ; 4 Jul 2002 21:38:46 -0000 Received: from gits.gits.dyndns.org (74157xndp9zivrfk@localhost [127.0.0.1]) by gits.gits.dyndns.org (8.12.4/8.12.4) with ESMTP id g64LcitY010636; Thu, 4 Jul 2002 23:38:45 +0200 (CEST) (envelope-from root@gits.dyndns.org) Received: (from root@localhost) by gits.gits.dyndns.org (8.12.4/8.12.4/Submit) id g64LchXu010635; Thu, 4 Jul 2002 23:38:43 +0200 (CEST) (envelope-from root) Date: Thu, 4 Jul 2002 23:38:43 +0200 From: Cyrille Lefevre To: Johan Karlsson Cc: arch@freebsd.org, dd@freebsd.org Subject: Re: importing readlink(1) from OpenBSD Message-ID: <20020704213843.GA10505@gits.dyndns.org> References: <20020704194314.A52250@numeri.campus.luth.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020704194314.A52250@numeri.campus.luth.se> User-Agent: Mutt/1.3.99i Organization: ACME X-Face: V|+c;4!|B?E%BE^{E6);aI.[< List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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