On 6/26/2012 6:09 PM, PaulAThompson wrote:
I am very confused about the correct manner of defining directory paths under cygwin, perl, and bash. I cannot determine the correct manner. Using the cygwin window, I navigate to locations using cd /cygdrive/c/subdir Using a bash shell to run a perl process under the shell and passing in a directory, I must use a windows-style specification with *nix forward slashes
If you're using Cygwin's Perl, then you don't need to worry about windows-style paths. If you must, for some reason, use the Windows-native Perl, then check out 'man cygpath'. It will handle the file path conversions for you so you can stick with POSIX paths when you type. -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple