On Fri, 19 Jul 2002, Marc M. Adkins wrote: > ./test.exe <parm> 2>&1 > which doesn't work under Windows (those durn backwards path separators). > > Either: > .\test.exe <parm> 2>&1 > or > test.exe <parm> 2>&1 > will work. Alas none of those are portable. The first won't work on Unix. The second incorrectly assumes that the current directory is in the user's $PATH. (The situation's even worse, of course, if the test program is truly named 'test' since that's also a built-in on many shells.) > I suppose that there is a flag indicating that the platform is Windows that > could be used as a conditional in these two functions. Yup, I think that's what you have to do. -- Andy Dougherty doughera@lafayette.edu Dept. of Physics Lafayette College, Easton PA 18042Thread Previous | Thread Next