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

Cross-platform !PATH (was Cross-platform PWD)



In article <35758A5A.1721@cdc.noaa.gov>,
	Andy Loughe <afl@cdc.noaa.gov> writes:
> 
> Heretofore all my development has been on a Unix box,
> so I am now beginning to learn to write code that can
> run on multiple platforms.  A new and fun challenge!
> 

How about this one:

How does one expand !PATH in a platform independent
manner?

CD, CURRENT = currentDir
!PATH = EXPAND_PATH ('+' + currentDir) + delimiter + !PATH

"delimiter" is platform-dependent, but required :-(


-bob 


-- 
Robert S. Mallozzi
http://cspar.uah.edu/~mallozzir/