Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <79218202D4B9D4118A290002A508E13B79C3BB@pnzexchange.pharos-intranet.co.nz> From: Ross Smith To: "'cygwin AT cygwin DOT com'" Subject: RE: Mixing / and \ path separators Date: Fri, 14 Mar 2003 11:14:32 +1300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" > From: Christopher Faylor [mailto:cgf AT redhat DOT com] > > On Thu, Mar 13, 2003 at 04:51:24PM -0500, Christopher Faylor wrote: > >On Fri, Mar 14, 2003 at 08:46:13AM +1300, Ross Smith wrote: > >>> From: Christopher Faylor [mailto:cgf-cygwin AT cygwin DOT com] > >>> > >>> On Wed, Mar 12, 2003 at 11:08:27PM +0100, Anton Ertl wrote: > >>> > > >>> >If so, how should I deal with path names where parts of > the path come > >>> >from ordinary windows users? > >>> > >>> Either tell your Windows users to use forward slashes, > tell them to > >>> specify the path name using windows specs like f:\cygwin\foo\bar, > >>> or change the backslashes to slashes. > >> > >>Wouldn't cygwin_conv_to_posix_path() and its relatives be a more > >>general solution? > > > >Good point. It probably is, if that option is available. > > I'm sorry. No. Let me take that back. > > I think what is being done is that someone is typing /usr\local/bin. > cygwin_conv_to_posix_path is not the right solution here. That would > end up creating something like /cygdrive/c/usr/local/bin which is > probably not what's intended. I should have been more explicit -- I meant applying it to the user-supplied possibly-Windows-style part of the path _before_ merging it with the program-supplied rest of the path to make an absolute path. -- Ross Smith ...................... Pharos Systems, Auckland, New Zealand "It's never too soon to start planning, and, in fact, it's usually too late." -- Chad Orzel -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/