From owner-freebsd-questions@FreeBSD.ORG Sat May 8 13:27:50 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64D6616A4CE for ; Sat, 8 May 2004 13:27:50 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8DCB43D41 for ; Sat, 8 May 2004 13:27:48 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i48KRgl5093380 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 8 May 2004 21:27:43 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i48KRgFP093379; Sat, 8 May 2004 21:27:42 +0100 (BST) (envelope-from matthew) Date: Sat, 8 May 2004 21:27:42 +0100 From: Matthew Seaman To: Kai Grossjohann Message-ID: <20040508202742.GA93217@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Kai Grossjohann , freebsd-questions@freebsd.org References: <871xlu3lk5.fsf@emptyhost.emptydomain.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7AUc2qLy4jB3hD7Z" Content-Disposition: inline In-Reply-To: <871xlu3lk5.fsf@emptyhost.emptydomain.de> User-Agent: Mutt/1.5.6i X-Virus-Scanned: clamd / ClamAV version devel-20040504, clamav-milter version 0.70u X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: Built-in lpr vs CUPS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 May 2004 20:27:50 -0000 --7AUc2qLy4jB3hD7Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 08, 2004 at 06:55:54PM +0200, Kai Grossjohann wrote: > The default setup is to include /usr/bin before /usr/local/bin in > $PATH. This means that entering "lpr -Pfoo" doesn't work for printing > on my machine, I have to say "/usr/local/bin/lpr -Pfoo". >=20 > It is obvious that I could change $PATH to mention /usr/local/bin > before /usr/bin, but is that the right solution? Surely there is a > reason for /etc/login.conf to mention /usr/bin first. Most of the system assumes it's using the utilities that come with it: ie. the contents of /usr/bin. Equivalently named programs could well be installed into /usr/local/bin, and those need not behave exactly the same, so for consistencies' sake, having /usr/bin first is generally better. However, that's not always what's required, and putting /usr/local/bin before /usr/bin in your path might be the right solution for certain user accounts. (Real users, not system ones) =20 > Any thoughts are very much appreciated. An alternative is to set up some shell aliases for those commands: % alias lpr /usr/local/bin/lpr Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --7AUc2qLy4jB3hD7Z Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAnUK+iD657aJF7eIRAs3YAKCkOScu3C+QOd9cLdpXdJCLb/wIbwCePq/Y iyWhusWtQYAuJMi8lGAr/9g= =n8q7 -----END PGP SIGNATURE----- --7AUc2qLy4jB3hD7Z--