home dir executable (!/bin/sh, chmod+x) shell scripts won't
run without "sh <script>"
roberthuff at rcn.com
Mon Jan 7 10:21:53 PST 2008
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:
More information about the freebsd-questions