This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

file path resolution in DOS window vs mintty window


I would like to understand why Cygwin style paths do not work in a CMD (DOS)
window on my 32-bit Cygwin system, but work fine on my 64-bit Cygwin
install.

Here is a simple example of the issue:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

void main()
{
        char path_test_file[]={"/tmp"};

        /* look for file */
        if (access(path_test_file,F_OK)!=0) {
                fprintf(stderr, "%s does not exist\n", path_test_file);
                exit(16);
        }
        fprintf(stderr, "%s exists\n", path_test_file);
        exit(0);
}

Here is what I am seeing:

32-bit install       DOS -- can't find /tmp    SH.EXE  -- finds /tmp
64-bit install       DOS--finds /tmp           SH.EXE -- finds /tmp

Steve Bardwell

Attachment: cygcheck32.out
Description: Binary data

Attachment: cygcheck64.out
Description: Binary data

--
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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]