Hai Vu
2008-03-09 03:06:51 UTC
I am trying to write a script that would work on both Windows and Mac
(essentially BSD). I would like to parse the environment variables
into pieces using the the split command. However, in Windows, the
separator is a semicolon (;) and in Unix-based systems, a colon (:).
Currently I am looking at $tcl_platform(platform), if it is "windows",
then use ";"; if it is "unix", then use ":".
Is there a built-in command to return such information? In python, we
have os.path.pathsep for this job.
Hai
(essentially BSD). I would like to parse the environment variables
into pieces using the the split command. However, in Windows, the
separator is a semicolon (;) and in Unix-based systems, a colon (:).
Currently I am looking at $tcl_platform(platform), if it is "windows",
then use ";"; if it is "unix", then use ":".
Is there a built-in command to return such information? In python, we
have os.path.pathsep for this job.
Hai