Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jan 2008 13:21:46 -0500
From:      Robert Huff <roberthuff@rcn.com>
To:        jamesh@lanl.gov
Cc:        Steve Franks <stevefranks@ieee.org>, Erik Osterholm <freebsd-lists-erik@erikosterholm.org>, 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:  <18306.28090.6757.694545@jerusalem.litteratus.org>
In-Reply-To: <1199725330.26459.7.camel@p25dual1.lanl.gov>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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.


					Robert Huff




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