* Directory structuring
@ 2012-06-26 22:09 PaulAThompson
2012-06-26 22:19 ` Larry Hall (Cygwin)
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: PaulAThompson @ 2012-06-26 22:09 UTC (permalink / raw)
To: cygwin
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
c:/subdir
I have tried a number of manner of using cd within the bash shell to change
directories without any success
Is there a simple guide to the path specifications? This seems simple, but I
cannot figure out the correct specification
Within the bash shell, I have tried
cd /cygdrive/c/subdir
cd "/cygdrive/c/subdir"
cd c:/subdir
cd "c:/subdir"
None of these work
--
View this message in context: http://old.nabble.com/Directory-structuring-tp34075389p34075389.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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Directory structuring
2012-06-26 22:09 Directory structuring PaulAThompson
@ 2012-06-26 22:19 ` Larry Hall (Cygwin)
2012-06-26 22:35 ` PaulAThompson
2012-06-26 22:45 ` PaulAThompson
2012-06-27 7:06 ` AW: [bulk] - " DEWI - N. Zacharias
2012-06-27 22:17 ` PaulAThompson
2 siblings, 2 replies; 8+ messages in thread
From: Larry Hall (Cygwin) @ 2012-06-26 22:19 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Directory structuring
2012-06-26 22:19 ` Larry Hall (Cygwin)
@ 2012-06-26 22:35 ` PaulAThompson
2012-06-26 22:45 ` PaulAThompson
1 sibling, 0 replies; 8+ messages in thread
From: PaulAThompson @ 2012-06-26 22:35 UTC (permalink / raw)
To: cygwin
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.
>
>
>
> Thanks, Larry, you pointed me in the direction of checking my install. I
> did not have the cygwin perl installed. I will add that, and check again.
>
> --
> 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-tp34075389p34075497.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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Directory structuring
2012-06-26 22:19 ` Larry Hall (Cygwin)
2012-06-26 22:35 ` PaulAThompson
@ 2012-06-26 22:45 ` PaulAThompson
2012-06-26 23:00 ` Larry Hall (Cygwin)
1 sibling, 1 reply; 8+ messages in thread
From: PaulAThompson @ 2012-06-26 22:45 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Directory structuring
2012-06-26 22:45 ` PaulAThompson
@ 2012-06-26 23:00 ` Larry Hall (Cygwin)
0 siblings, 0 replies; 8+ messages in thread
From: Larry Hall (Cygwin) @ 2012-06-26 23:00 UTC (permalink / raw)
To: cygwin
On 6/26/2012 6:45 PM, PaulAThompson wrote:
>> Now I need to sort out the bash shell issue. I can't even get the bash
>> shell to accept dir
'dir' is from the "coreutils" package which is installed by default.
Check if you have '/usr/bin/dir.exe". If not, your installation is
incomplete.
--
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* AW: [bulk] - Directory structuring
2012-06-26 22:09 Directory structuring PaulAThompson
2012-06-26 22:19 ` Larry Hall (Cygwin)
@ 2012-06-27 7:06 ` DEWI - N. Zacharias
2012-06-27 22:04 ` PaulAThompson
2012-06-27 22:17 ` PaulAThompson
2 siblings, 1 reply; 8+ messages in thread
From: DEWI - N. Zacharias @ 2012-06-27 7:06 UTC (permalink / raw)
To: cygwin
Hi Paul,
>Von: PaulAThompson
>Gesendet: Mittwoch, 27. Juni 2012 00:09
>Betreff: [bulk] - Directory structuring
>
>
>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
>
>c:/subdir
>
>I have tried a number of manner of using cd within the bash shell to change
>directories without any success
[zac] As far as I can reproduce all windows/terminals under cygwin using the bash. So the reason for your problem might be located somewhere else.
>Is there a simple guide to the path specifications? This seems simple, but I
>cannot figure out the correct specification
>
>Within the bash shell, I have tried
>
>cd /cygdrive/c/subdir
>cd "/cygdrive/c/subdir"
>cd c:/subdir
>cd "c:/subdir"
>
>None of these work
[zac] All of them should work! So what exactly is the reaction you get from the bash ??
Best regards
Norbert
DEWEK 2012, 11th German Wind Energy Conference, 7-8 November 2012 in Bremen
http://www.dewek.de/
--------------------------------------------------------------------------
Dipl. Phys.
Norbert Zacharias
Wind Measurements & Power Curve Measurements
DEWI GmbH
Ebertstrasse 96
26382 Wilhelmshaven
Germany
Tel.: +49 4421 4808 876
Fax: +49 4421 4808 843
Email: N.Zacharias@dewi.de
Home: http://www.dewi.de
DEWI GmbH - Deutsches Windenergie-Institut, Wilhelmshaven
Commercial Register No.: Amtsgericht Oldenburg, HRB 130241
Managing Director: Jens Peter Molly
P Please consider the environment before printing this 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: AW: [bulk] - Directory structuring
2012-06-27 7:06 ` AW: [bulk] - " DEWI - N. Zacharias
@ 2012-06-27 22:04 ` PaulAThompson
0 siblings, 0 replies; 8+ messages in thread
From: PaulAThompson @ 2012-06-27 22:04 UTC (permalink / raw)
To: cygwin
DEWI - N. Zacharias wrote:
>
>
> Hi Paul,
>
>>Von: PaulAThompson
>>Gesendet: Mittwoch, 27. Juni 2012 00:09
>
>>Betreff: [bulk] - Directory structuring
>>
>>
>>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
>>
>>c:/subdir
>>
>>I have tried a number of manner of using cd within the bash shell to
change
>>directories without any success
>
>
> [zac] As far as I can reproduce all windows/terminals under cygwin using
> the bash. So the reason for your problem might be located somewhere else.
>
>>Is there a simple guide to the path specifications? This seems simple, but
I
>>cannot figure out the correct specification
>>
>>Within the bash shell, I have tried
>>
>>cd /cygdrive/c/subdir
>>cd "/cygdrive/c/subdir"
>>cd c:/subdir
>>cd "c:/subdir"
>>
>>None of these work
>
> [zac] All of them should work! So what exactly is the reaction you get
> from the bash ??
>
> Best regards
> Norbert
>
> Thank you for your response. The problem was windows line-endings. A
> rigorous and consistent use of d2u on every file I can find fixes the
> problem.
>
>
> DEWEK 2012, 11th German Wind Energy Conference, 7-8 November 2012 in
> Bremen
> http://www.dewek.de/
>
>
> --------------------------------------------------------------------------
> Dipl. Phys.
> Norbert Zacharias
> Wind Measurements & Power Curve Measurements
> DEWI GmbH
> Ebertstrasse 96
> 26382 Wilhelmshaven
> Germany
>
>
> Tel.: +49 4421 4808 876
>
> Fax: +49 4421 4808 843
>
>
> Email: N.Zacharias@dewi.de
> Home: http://www.dewi.de
>
> DEWI GmbH - Deutsches Windenergie-Institut, Wilhelmshaven
> Commercial Register No.: Amtsgericht Oldenburg, HRB 130241
> Managing Director: Jens Peter Molly
>
> P Please consider the environment before printing this 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-tp34075389p34083359.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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Directory structuring
2012-06-26 22:09 Directory structuring PaulAThompson
2012-06-26 22:19 ` Larry Hall (Cygwin)
2012-06-27 7:06 ` AW: [bulk] - " DEWI - N. Zacharias
@ 2012-06-27 22:17 ` PaulAThompson
2 siblings, 0 replies; 8+ messages in thread
From: PaulAThompson @ 2012-06-27 22:17 UTC (permalink / raw)
To: cygwin
I have solved this problem. Please do not reply any more.
Solution:
1) Ensure that cygwin was using a cygwin-native perl
2) Routine use of d2u to get the files to have *nix endings for lines not
windows endings
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
>
> c:/subdir
>
> I have tried a number of manner of using cd within the bash shell to
> change directories without any success
>
> Is there a simple guide to the path specifications? This seems simple, but
> I cannot figure out the correct specification
>
> Within the bash shell, I have tried
>
> cd /cygdrive/c/subdir
> cd "/cygdrive/c/subdir"
> cd c:/subdir
> cd "c:/subdir"
>
> None of these work
>
>
--
View this message in context: http://old.nabble.com/Directory-structuring-tp34075389p34083438.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
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-06-27 22:17 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-26 22:09 Directory structuring PaulAThompson
2012-06-26 22:19 ` Larry Hall (Cygwin)
2012-06-26 22:35 ` PaulAThompson
2012-06-26 22:45 ` PaulAThompson
2012-06-26 23:00 ` Larry Hall (Cygwin)
2012-06-27 7:06 ` AW: [bulk] - " DEWI - N. Zacharias
2012-06-27 22:04 ` PaulAThompson
2012-06-27 22:17 ` PaulAThompson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).