public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* executable extension?
@ 2001-11-02  5:55 jerry
  2001-11-02  6:32 ` Larry Hall (RFK Partners, Inc)
  2001-11-11  8:26 ` jerry
  0 siblings, 2 replies; 4+ messages in thread
From: jerry @ 2001-11-02  5:55 UTC (permalink / raw)
  To: cygwin



I didn't see this in the FAQ (maybe I'm just blind) but I've
noticed the following:

$ cp du.exe du
cp: 'du.exe' and 'du' are the same file

In stepping through the code, I see that this is the result of
the:

  same = (SAME_INODE(src_sb, dst_sb));

statement in copy.c

I guess I'm trying to understand why stat() sees filename.exe
and filename as the same file :-(

jerry
Jerry Heyman   919.224.1442    | IBM SWG/Tivoli Software |"Software is the 
Build Infrastructure Architect | 3901 S Miami Blvd       | difference between
jheyman@dev.tivoli.com         | RTP, NC  27709          | hardware and reality"
                     http://www.acm.org/~heymanj

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: executable extension?
  2001-11-02  5:55 executable extension? jerry
@ 2001-11-02  6:32 ` Larry Hall (RFK Partners, Inc)
  2001-11-11  8:26   ` Larry Hall (RFK Partners, Inc)
  2001-11-11  8:26 ` jerry
  1 sibling, 1 reply; 4+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-11-02  6:32 UTC (permalink / raw)
  To: jheyman, cygwin

At 01:10 PM 11/13/2001, Jerry Heyman wrote:


>I didn't see this in the FAQ (maybe I'm just blind) but I've
>noticed the following:
>
>$ cp du.exe du
>cp: 'du.exe' and 'du' are the same file
>
>In stepping through the code, I see that this is the result of
>the:
>
>   same = (SAME_INODE(src_sb, dst_sb));
>
>statement in copy.c
>
>I guess I'm trying to understand why stat() sees filename.exe
>and filename as the same file :-(


This is historical support for Win9x/ME.  It's not possible to run an
executable on these systems unless the executable exists with a ".exe" 
extension.  Win9x/ME is *very* extension-oriented.  NT-based systems 
don't have this restriction.  Many existing scripts that people want to 
use don't add ".exe" to each executable.  Most people don't even type 
executable names with this extension (nor want to).  As a result,
we need to map the command name without the extension to the one with,
to satisfy Win9x/ME.  That's the reason.

Now say, thank you Bill! ;-)



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: executable extension?
  2001-11-02  6:32 ` Larry Hall (RFK Partners, Inc)
@ 2001-11-11  8:26   ` Larry Hall (RFK Partners, Inc)
  0 siblings, 0 replies; 4+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-11-11  8:26 UTC (permalink / raw)
  To: jheyman, cygwin

At 01:10 PM 11/13/2001, Jerry Heyman wrote:


>I didn't see this in the FAQ (maybe I'm just blind) but I've
>noticed the following:
>
>$ cp du.exe du
>cp: 'du.exe' and 'du' are the same file
>
>In stepping through the code, I see that this is the result of
>the:
>
>   same = (SAME_INODE(src_sb, dst_sb));
>
>statement in copy.c
>
>I guess I'm trying to understand why stat() sees filename.exe
>and filename as the same file :-(


This is historical support for Win9x/ME.  It's not possible to run an
executable on these systems unless the executable exists with a ".exe" 
extension.  Win9x/ME is *very* extension-oriented.  NT-based systems 
don't have this restriction.  Many existing scripts that people want to 
use don't add ".exe" to each executable.  Most people don't even type 
executable names with this extension (nor want to).  As a result,
we need to map the command name without the extension to the one with,
to satisfy Win9x/ME.  That's the reason.

Now say, thank you Bill! ;-)



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* executable extension?
  2001-11-02  5:55 executable extension? jerry
  2001-11-02  6:32 ` Larry Hall (RFK Partners, Inc)
@ 2001-11-11  8:26 ` jerry
  1 sibling, 0 replies; 4+ messages in thread
From: jerry @ 2001-11-11  8:26 UTC (permalink / raw)
  To: cygwin



I didn't see this in the FAQ (maybe I'm just blind) but I've
noticed the following:

$ cp du.exe du
cp: 'du.exe' and 'du' are the same file

In stepping through the code, I see that this is the result of
the:

  same = (SAME_INODE(src_sb, dst_sb));

statement in copy.c

I guess I'm trying to understand why stat() sees filename.exe
and filename as the same file :-(

jerry
Jerry Heyman   919.224.1442    | IBM SWG/Tivoli Software |"Software is the 
Build Infrastructure Architect | 3901 S Miami Blvd       | difference between
jheyman@dev.tivoli.com         | RTP, NC  27709          | hardware and reality"
                     http://www.acm.org/~heymanj

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-11-13 18:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-02  5:55 executable extension? jerry
2001-11-02  6:32 ` Larry Hall (RFK Partners, Inc)
2001-11-11  8:26   ` Larry Hall (RFK Partners, Inc)
2001-11-11  8:26 ` jerry

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