Larry Hall (Cygwin-X) wrote:
>
> 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.
>
>
> PERFECT - I installed cygwin perl, changed the paths, reran, and got the
> correct result - the paths that were showing under getcwd() were correct,
> and my chdir worked correctly.
>
> Now I need to sort out the bash shell issue. I can't even get the bash
> shell to accept
> dir
>
>
> --
> 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
>
>
>
--
View this message in context:
http://old.nabble.com/Directory-structuring-tp34075389p34075547.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
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