Something similar to PATH environment variable - but for non-executable files?

Something similar to PATH environment variable - but for non-executable files?

Post by scot » Wed, 11 Feb 2009 06:58:09


Greg Dharma < XXXX@XXXXX.COM > writes:

It is clearly application specific.

the man command uses the MANPATH variable in much this way.

There is also CDPATH in ksh/bash.

Some versions of make support similar types of path searches internally.

scott
 
 
 

Something similar to PATH environment variable - but for non-executable files?

Post by markhoble » Thu, 12 Feb 2009 05:08:04


What does the following dodgy code do?

echo foo > /tmp/foo.txt
echo bar > ~/foo.txt
cd /
cat ~[foo.txt]
echo ~[foo.txt]
rm ~[foo.txt]

Mark.

--
Mark Hobley
Linux User: #370818 http://www.yqcomputer.com/