From: pjb@... (Pascal J. Bourguignon) Date: 2009-03-11T01:53:07+09:00 Subject: Re: Shell scripting & Windows/Linux Paths Juan Zanos writes: >> 2009/3/10 Juan Zanos : >>> What's the best way to launch executables with Ruby in a way that >>> paths and >>> other command line parameters work on both Windows and Linux? > Yes, I'm mostly concerned with paths. I'd like to write everything > in Unix style and just have it automatically converted somehow so > everything stays relatively legible. IMO, the best way is not to use any literal path. Keep a map of executable => path that you load at startup from a different configuration file (or source) depending on whether you run on Microsoft Windows or on Unix. Actually this would even allow you to adapt your program to different Unix systems, with different "standard" places for the various executables. If you try that, you will see that it gives you some level of abstraction in the management of pathnames so your program becomes even clearer. -- __Pascal Bourguignon__