file path resolution in DOS window vs mintty window

Steven Bardwell SBardwell@lbmsys.com
Sat Jan 25 20:04:00 GMT 2014


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck32.out
Type: application/octet-stream
Size: 188844 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20140125/08f114bc/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck64.out
Type: application/octet-stream
Size: 290063 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20140125/08f114bc/attachment-0001.obj>
-------------- next part --------------
--
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


More information about the Cygwin mailing list