[clug] path with wildcards

Michael.James at csiro.au Michael.James at csiro.au
Thu Aug 2 06:52:46 GMT 2007


Where should a package put its executables?

If it's big then   /opt/<big-package>/bin/
  and add that dir to the path with   /etc/profile.d/<big-package>.sh

If it's tiny          /usr/local/bin/

If it's middling then maybe  /opt/(small-package>/bin/
  with a full set of soft links in  /usr/local/bin

But the upshot is a lot of  /usr/local/bin/
  dirs with generations of un-traceable cruft.

Is there any way to have sub-dirs included in the path?

export PATH='~/.bin:opt/bin/*:/usr/bin:/bin'

ls -l /opt/bin/*

/opt/bin/big-package -> /opt/big-package/bin
/opt/bin/bin  ->  /usr/local/bin
/opt/bin/tiny-package/my1st-executable
/opt/bin/tiny-package/my2nd-executable
/opt/bin/tiny-package/my3rd-executable


It would help us on the way to the plug-in style of
Initialization script in	/etc/profile.d
Libraries in	/etc/ld.so.conf.d/

michaelj

-- 
Michael James                         michael.james at csiro.au
System Administrator                    voice:  02 6246 5040
CSIRO Bioinformatics Facility             fax:  02 6246 5166

No matter how much you pay for software,
 you always get less than you hoped.
Unless you pay nothing, then you get more.


More information about the linux mailing list