From owner-svn-src-head@FreeBSD.ORG Wed May 16 00:23:24 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 28D9C106564A; Wed, 16 May 2012 00:23:24 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (bird.sbone.de [46.4.1.90]) by mx1.freebsd.org (Postfix) with ESMTP id C9D488FC12; Wed, 16 May 2012 00:23:23 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id E91EC25D3A05; Wed, 16 May 2012 00:23:16 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 1467EBE60CF; Wed, 16 May 2012 00:23:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id 6w87z8DYOPew; Wed, 16 May 2012 00:23:15 +0000 (UTC) Received: from orange-en1.sbone.de (orange-en1.sbone.de [IPv6:fde9:577b:c1a9:31:cabc:c8ff:fecf:e8e3]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 14A0BBE60CE; Wed, 16 May 2012 00:23:14 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: "Bjoern A. Zeeb" In-Reply-To: <201205152015.q4FKFHob003642@svn.freebsd.org> Date: Wed, 16 May 2012 00:23:14 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <14EB5CAF-03DF-4D64-9707-A8129F02DB23@lists.zabbadoz.net> References: <201205152015.q4FKFHob003642@svn.freebsd.org> To: Eitan Adler X-Mailer: Apple Mail (2.1084) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r235481 - head/share/examples/csh X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2012 00:23:24 -0000 On 15. May 2012, at 20:15 , Eitan Adler wrote: > Author: eadler > Date: Tue May 15 20:15:17 2012 > New Revision: 235481 > URL: http://svn.freebsd.org/changeset/base/235481 >=20 > Log: > Rework sample code which sets SSH_AUTH_SOCK to the user's ssh-agent > socket path if running >=20 > PR: 167932 > Submitted by: madpilot (pr) > Submitted by: wblock (final patch) > Reviewed by: If someone else reviewed your modification. > Approved by: cperciva (implicit) > MFC after: 3 days >=20 > Modified: > head/share/examples/csh/dot.cshrc >=20 > Modified: head/share/examples/csh/dot.cshrc > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > --- head/share/examples/csh/dot.cshrc Tue May 15 17:21:46 2012 = (r235480) > +++ head/share/examples/csh/dot.cshrc Tue May 15 20:15:17 2012 = (r235481) > @@ -5,7 +5,7 @@ >=20 > # Sets SSH_AUTH_SOCK to the user's ssh-agent socket path if running > if (${?SSH_AUTH_SOCK} !=3D "1") then > - setenv SSH_AUTH_SOCK `sockstat | grep "${USER}" | cut -d ' ' -f = 6`=20 > + setenv SSH_AUTH_SOCK `sockstat | grep "^${USER} " | awk = '/ssh-agent/ { print $6 }'` Wow; how would that handle the 6 different agents I am running? Can you please get rid of that extra call for grep and move it into the = awk regex? Would sockstat -u be good enough to limit the output passed through the = pipe? > endif >=20 > # Change only root's prompt --=20 Bjoern A. Zeeb You have to have visions! It does not matter how good you are. It matters what good you do!