Date: Tue, 8 Jan 2008 10:10:37 +1300 From: Jonathan Chen <jonc@chen.org.nz> To: Robert Huff <roberthuff@rcn.com> Cc: "jamesh @ lanl. gov User Questions" <freebsd-questions@freebsd.org> Subject: Re: home dir executable (!/bin/sh, chmod+x) shell scripts won't run without "sh <script>" Message-ID: <20080107211037.GB21215@osiris.chen.org.nz> In-Reply-To: <18306.28090.6757.694545@jerusalem.litteratus.org> References: <539c60b90801070752l3d0e571cq8f7b1b519e1e808c@mail.gmail.com> <5D884B59-3CEF-4F81-B35D-4E54F5D6301C@gmail.com> <539c60b90801070813h537451e8q9264897bc9404260@mail.gmail.com> <20080107165047.GA12249@aleph.cepheid.org> <1199725330.26459.7.camel@p25dual1.lanl.gov> <18306.28090.6757.694545@jerusalem.litteratus.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 07, 2008 at 01:21:46PM -0500, Robert Huff wrote: > James Harrison writes: > > > One example that comes to mind is the CUPS port. It installs its > > own version of the lpr binary in /usr/local/bin. However, there's > > also an instance of lpr, the BSD version, in /usr/bin. So how do > > you make sure you're using the CUPS version of the binary? > > > > The recommended way is a simple path edit, so that /usr/local/bin > > appears before /usr/bin in the path. This way, your OS will use > > the /usr/local/bin/lpr binary, leaving the system one untouched > > and, if you ever want to revert to the system one you can simply > > switch the path again. You can also accomplish a similar thing > > with symlinks, but this is one useful idea for using the path. > > There's another way, though one with implications - add: > > CUPS_OVERWRITE_BASE= "yes" > > to /etc/make.conf. Another alternative would be to remove the system binaries (and add "NO_LPR=" to /etc/make.conf to prevent its reinstallation during a build/installworld). Cheers. -- Jonathan Chen <jonc@chen.org.nz> ----------------------------------------------------------------------- "I love deadlines. I like the whooshing sound they make as they fly by" - Douglas Adams
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080107211037.GB21215>