delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,KHOP_THREADED,NML_ADSP_CUSTOM_MED,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <34075547.post@talk.nabble.com> |
Date: | Tue, 26 Jun 2012 15:45:45 -0700 (PDT) |
From: | PaulAThompson <patjahsd AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Directory structuring |
In-Reply-To: | <4FEA3545.5030507@cygwin.com> |
MIME-Version: | 1.0 |
References: | <34075389 DOT post AT talk DOT nabble DOT com> <4FEA3545 DOT 5030507 AT cygwin DOT com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |