[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Standardized paths



>Speaking of standardizing paths: is there a convention how to locate
>files that are supposed to live in /etc (like /etc/magic)?
>
>Currently, I try u:\etc and $ETCDIR...

The method I would use would be..

If current directory is under U:
	check \etc
	if not there then check $ETCDIR
else
	check $ETCDIR
	if not there then check U:\

Then again.. I usually just check "/etc" and if it's not there then I assume
that the person is not running in a mode conjusive to being Unix-like and
bomb out with an error.

>-- 
>---------------------------------------------------
>Julian F. Reschke, Hensenstr. 142, D-48161 Muenster
> eMail: reschke@math.uni-muenster.de jr@ms.maus.de
>___________________________________________________
>

Steve

-- 
---------------------------------------------------------------------------
Computer Systems Administrator, Dept. of Earth Sciences, Oxford University.
E-Mail: steve@uk.ac.ox.earth (JANET) steve@earth.ox.ac.uk (Internet).
Tel:- Oxford (0865) 282110 (UK) or +44 865 282110 (International).