Re: cygpath -w and .exe magic

2016-08-26 Thread cyg Simple
On 8/26/2016 10:58 AM, Nellis, Kenneth wrote: > $ cmd /c DIR $(cygpath -w hello) But $ cmd /c $(cygpath -w hello) will execute hello.exe The fact that you get file not found error tells me that cmd is doing what it does. The purpose of the .exe magic is for executing the file from the Cyg

Re: cygpath -w and .exe magic

2016-08-26 Thread Erik Soderquist
On Fri, Aug 26, 2016 at 10:58 AM, Nellis, Kenneth wrote: > Here is a contrived example: > > $ cmd /c DIR $(cygpath -w hello.exe) > Volume in drive C has no label. > Volume Serial Number is 6A15-FFB2 > > Directory of C:\cygwin\home\knellis\dev\c\hello > > 08/26/2016 10:4760,927 hello

Re: cygpath -w and .exe magic

2016-08-26 Thread Herbert Stocker
the tool should do the .exe magic rather than pass off this responsibility to the user. Food for thought. Sounds reasonable, but why shouldn't one have to say .exe if they mean .exe? That principle makes things easy. Just to illustrate a complication of that approach: Imagine you want to t

RE: cygpath -w and .exe magic

2016-08-26 Thread Nellis, Kenneth
From: cyg Simple > On 8/26/2016 10:35 AM, Nellis, Kenneth wrote: > > From: Herbert Stocker > >> On 26.08.2016 15:19, Lee Dilkie wrote: > >>> and break everyone who has existing code to take care of this? > >> > >> If it is done, it should be done as an additional option, i'd say. > > > > Of course

Re: cygpath -w and .exe magic

2016-08-26 Thread Doug Henderson
On 26 August 2016 at 07:08, Nellis, Kenneth wrote: > Dear Cygwin Community, > > $ ls -l > total 60 > -rwxr-x--- 1 knellis Domain Users 60927 Aug 26 08:57 hello.exe > $ ./hello > Hello, world! > $ cygpath -w hello > hello > $ > > The purpose of cygpath -w, it seems to me, is to provide > to Windows

Re: cygpath -w and .exe magic

2016-08-26 Thread cyg Simple
On 8/26/2016 10:35 AM, Nellis, Kenneth wrote: > From: Herbert Stocker >> On 26.08.2016 15:19, Lee Dilkie wrote: >>> and break everyone who has existing code to take care of this? >> >> If it is done, it should be done as an additional option, i'd say. > > Of course a new option, duh! ☺ > But my fe

RE: cygpath -w and .exe magic

2016-08-26 Thread Nellis, Kenneth
From: Herbert Stocker > On 26.08.2016 15:19, Lee Dilkie wrote: > > and break everyone who has existing code to take care of this? > > If it is done, it should be done as an additional option, i'd say. Of course a new option, duh! ☺ But my feeble brain is failing to imagine a case where this would

Re: cygpath -w and .exe magic

2016-08-26 Thread cyg Simple
rtainly > be a problem. I recognize this might be considered a > change of scope for the program, but I think the tool > should do the .exe magic rather than pass off this > responsibility to the user. Food for thought. You say certainly but provide no real proof other than y

Re: cygpath -w and .exe magic

2016-08-26 Thread Herbert Stocker
change of scope for the program, but I think the tool should do the .exe magic rather than pass off this responsibility to the user. Food for thought. and break everyone who has existing code to take care of this? If it is done, it should be done as an additional option, i'd say. He

Re: cygpath -w and .exe magic

2016-08-26 Thread Lee Dilkie
think the tool should do the .exe magic rather than pass off this responsibility to the user. Food for thought. and break everyone who has existing code to take care of this? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation

cygpath -w and .exe magic

2016-08-26 Thread Nellis, Kenneth
Cygwin allows to be referenced simply as foo, should not: cygpath -w foo return: foo.exe instead of: foo ? Passing foo to a Windows application will certainly be a problem. I recognize this might be considered a change of scope for the program, but I think the tool should do the .exe magic rather

Re: Cygwin exe magic does not understand .com extension? [or .exe sometimes]

2013-11-04 Thread Christopher Faylor
On Tue, Nov 05, 2013 at 03:44:35PM +1100, wrote: >Christopher Faylor wrote: > >> On Tue, Nov 05, 2013 at 02:52:44AM +0400, Andrey Repin wrote: >> >Greetings, All! >> > >> >$ mode >> >mode.com modemui.dll modex.dll >> >> That woul

Re: Cygwin exe magic does not understand .com extension?

2013-11-04 Thread Christopher Faylor
On Mon, Nov 04, 2013 at 10:58:21PM -0500, Christopher Faylor wrote: >On Tue, Nov 05, 2013 at 02:52:44AM +0400, Andrey Repin wrote: >>Greetings, All! >> >>$ mode >>mode.com modemui.dll modex.dll > >That would be /bin/sh exe magic from the looks of it. It

Re: Cygwin exe magic does not understand .com extension? [or .exe sometimes]

2013-11-04 Thread cygwin
Christopher Faylor wrote: > On Tue, Nov 05, 2013 at 02:52:44AM +0400, Andrey Repin wrote: > >Greetings, All! > > > >$ mode > >mode.com modemui.dll modex.dll > > That would be /bin/sh exe magic from the looks of it. It is probably > just trying to find

Re: Cygwin exe magic does not understand .com extension?

2013-11-04 Thread Christopher Faylor
On Tue, Nov 05, 2013 at 02:52:44AM +0400, Andrey Repin wrote: >Greetings, All! > >$ mode >mode.com modemui.dll modex.dll That would be /bin/sh exe magic from the looks of it. It is probably just trying to find anything with an executable bit set, just like on Linux. >$ m

Cygwin exe magic does not understand .com extension?

2013-11-04 Thread Andrey Repin
Greetings, All! $ mode mode.com modemui.dll modex.dll $ mode bash: mode: command not found Now, I see two issues. First, it is that it see .dll files as executables. Which is true in essence, but rather suspicious, as .dll files are normally not directly executable. Would really like an exp

Re: .exe magic reloaded 2

2010-09-16 Thread Andrey Repin
Greetings, Al! >> You didn't read my reply to the end, but I accept your explanation. >> Still, that specific point of code is suspicious for my taste of >> fool-proof'ness. >> > Sure you could reflect about the length of minor versions here. But > does that address the original topic? :-) > Aft

Re: .exe magic reloaded 2

2010-09-15 Thread Al
> > You didn't read my reply to the end, but I accept your explanation. > Still, that specific point of code is suspicious for my taste of > fool-proof'ness. > Sure you could reflect about the length of minor versions here. But does that address the original topic? :-) After python 2.7 there is 3

Re: 1.7.7 ln & .exe magic

2010-09-15 Thread Andrey Repin
Greetings, Rolf Campbell! > test case--- > From bash, in an empty directory: > $ ln /bin/ls t > $ ls > t.exe > > Why does the resulting hard link have a '.exe' suffix on it? I thought > that cygwin .exe magic was only ap

Re: .exe magic reloaded 2

2010-09-15 Thread Andrey Repin
Greetings, Al! >> I'm fairly certain, that the script is bugged in this specific case. >> It should be looking for python2.* instead. >> Minor version could have any length... potentially. (And yes, I know, there >> wouldn't be .10 for now) > Definitly not. It would also find "python2.6-config" w

Re: .exe magic reloaded 2

2010-09-15 Thread Andrey Repin
Greetings, Al! >> For instance, this one:  Either we always remove the .exe suffix from >> a file, or we have to check for each file with a .exe suffix, whether >> it's executable or not. > Probably without checking it. No sane program would use the .exe > suffix as extension of a mere textfile.

Re: .exe magic reloaded 2

2010-09-15 Thread Al
> I'm fairly certain, that the script is bugged in this specific case. > It should be looking for python2.* instead. > Minor version could have any length... potentially. (And yes, I know, there > wouldn't be .10 for now) Definitly not. It would also find "python2.6-config" which is not wanted. It

Re: .exe magic reloaded 2

2010-09-15 Thread Al
e two types of filessystem handling. The "normal" windows one, always with .exe suffix stored into the filename of executables. When mounting foreign unix filesystems no .exe magic would be used at all on them. Al -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: .exe magic reloaded 2

2010-09-15 Thread Andrey Repin
Greetings, Al! > I have another interesting case where .exe magic doesn't work as > transparently as one would expect. > I have a file python2.6.exe. A script tries to find it with "ls > python2.?". It is not found. I'm fairly certain, that the script is bugged

Re: .exe magic reloaded 2

2010-09-15 Thread Larry Hall (Cygwin)
On 9/15/2010 12:23 PM, Al wrote: For instance, this one: Either we always remove the .exe suffix from a file, or we have to check for each file with a .exe suffix, whether it's executable or not. Probably without checking it. No sane program would use the .exe suffix as extension of a mere te

Re: 1.7.7 ln & .exe magic

2010-09-15 Thread Eric Blake
On 09/15/2010 11:03 AM, Rolf Campbell wrote: test case--- From bash, in an empty directory: $ ln /bin/ls t $ ls t.exe Why does the resulting hard link have a '.exe' suffix on it? I thought that cygwin .exe magic was only appending when listing a

1.7.7 ln & .exe magic

2010-09-15 Thread Rolf Campbell
test case--- From bash, in an empty directory: $ ln /bin/ls t $ ls t.exe Why does the resulting hard link have a '.exe' suffix on it? I thought that cygwin .exe magic was only appending when listing a file? -- Problem reports: http://

Re: .exe magic reloaded 2

2010-09-15 Thread Al
> > For instance, this one:  Either we always remove the .exe suffix from > a file, or we have to check for each file with a .exe suffix, whether > it's executable or not. Probably without checking it. No sane program would use the .exe suffix as extension of a mere textfile. What would be the id

Re: .exe magic reloaded 2

2010-09-15 Thread Al
> I'd love to drop the .exe suffix from readdir(), I'm just not sure what > unwelcome side-effects we create. > Yes, that's always the point. All programs would break, that are only build against the .exe suffix. Like mine after patching it. :-) Don't know if Cygwin has a testing state to fix tho

Re: .exe magic reloaded 2

2010-09-15 Thread Corinna Vinschen
On Sep 15 15:50, Corinna Vinschen wrote: > On Sep 15 15:38, Al wrote: > > > > > > True.  In theory we would have to remove .exe and .lnk suffixes from > > > directory listings as well, but that was never the case in Cygwin. > > > > > > > > > > That's the way it has always been... isn't a strong ar

Re: .exe magic reloaded 2

2010-09-15 Thread Corinna Vinschen
On Sep 15 15:38, Al wrote: > > > > True.  In theory we would have to remove .exe and .lnk suffixes from > > directory listings as well, but that was never the case in Cygwin. > > > > > > That's the way it has always been... isn't a strong argument in development. It wasn't an argument, it was jus

Re: .exe magic reloaded 2

2010-09-15 Thread Al
> > True.  In theory we would have to remove .exe and .lnk suffixes from > directory listings as well, but that was never the case in Cygwin. > > That's the way it has always been... isn't a strong argument in development. I guess there are some other reasons to do it this way. If not one should

Re: .exe magic reloaded 2

2010-09-15 Thread Corinna Vinschen
On Sep 15 13:40, Al wrote: > Hello, > > I have another interesting case where .exe magic doesn't work as > transparently as one would expect. > > I have a file python2.6.exe. A script tries to find it with "ls > python2.?". It is not found. > > Here th

Re: .exe magic reloaded 2

2010-09-15 Thread Al
Hello, I have another interesting case where .exe magic doesn't work as transparently as one would expect. I have a file python2.6.exe. A script tries to find it with "ls python2.?". It is not found. Here the script needs a modification to work with Cygwin, but we can't real

Re: .exe magic reloaded

2010-09-06 Thread Al
> > I got a little bit confused now. Should I report now upstream at Perl > that Configure > has a problem by adding .exe, or is it just a problem with your layout? > > AFAIK perl does not symlink tr.exe, just its own files when using > -Dmksymlinks. > And failing to read a wrong tr.exe symlink do

Re: .exe magic reloaded

2010-09-06 Thread Al
> > I got a little bit confused now. Should I report now upstream at Perl > that Configure > has a problem by adding .exe, or is it just a problem with your layout? > > AFAIK perl does not symlink tr.exe, just its own files when using > -Dmksymlinks. > And failing to read a wrong tr.exe symlink do

Re: .exe magic reloaded

2010-09-06 Thread Reini Urban
; /home/prefix/gentoo/bin/tr.exe > > Then it would proxy all available .exe magic and even Perls > "Configure" would work. I got a little bit confused now. Should I report now upstream at Perl that Configure has a problem by adding .exe, or is it just a problem with your layout? AFAI

Re: .exe magic reloaded

2010-09-06 Thread Al
exe suffix itself. Back to the starting point. It follows the sysmlink should be: /home/prefix/gentoo/usr/bin/tr.exe -> /home/prefix/gentoo/bin/tr.exe instead of /home/prefix/gentoo/usr/bin/tr -> /home/prefix/gentoo/bin/tr.exe Then it would proxy all available .exe magic and even Perls &

Re: .exe magic reloaded

2010-09-06 Thread Corinna Vinschen
> > > > Magic is when it does the right thing magically. With your approach > you don't need any magic at all. You don't seem to understand the magic here. The magic is to add the .exe suffix to a filename. If you have a file foo.exe and call foo, you get foo.exe. If

Re: .exe magic reloaded

2010-09-06 Thread Al
> > It's definitely a bug in perl's Configure.  If the name of the symlink > is "foo", there's not the faintest reason to assume that "foo.exe" should > work at all. > > > Corinna > Magic is when it does the right thing magically. With your approach you don't need any magic at all. Al -- Problem

Re: .exe magic reloaded

2010-09-06 Thread Corinna Vinschen
7;t use the > > .exe suffix at all. > > > > > > Right, Perl wants to be superschlau and adds the .exe suffix. That > would work in Cygwins standard locations, where /bin and /usr/bin > seems to be the same. > > Is this a Bug on the side of Perls "Configure"

Re: .exe magic reloaded

2010-09-06 Thread Al
ht, Perl wants to be superschlau and adds the .exe suffix. That would work in Cygwins standard locations, where /bin and /usr/bin seems to be the same. Is this a Bug on the side of Perls "Configure" or rather a limitation in Cygwins .exe magic? As there is no official standard, how to

Re: .exe magic reloaded

2010-09-06 Thread Corinna Vinschen
On Sep 6 11:53, Al wrote: > It does not: > > > It does: > > > >  $ cd tmp > >  $ mkdir dir1 dir2 > >  $ cp /bin/echo.exe dir1 > >  $ ln -s `pwd`/dir1/echo.exe dir2/echo > >  $ ls -l dir* > >  dir1: > >  total 52 > >  -rwxr-xr-x 1 corinna vinschen 49166 2010-09-06 10:59 echo.exe > > > >  dir2: > >

Re: .exe magic reloaded

2010-09-06 Thread Al
It does not: > It does: > >  $ cd tmp >  $ mkdir dir1 dir2 >  $ cp /bin/echo.exe dir1 >  $ ln -s `pwd`/dir1/echo.exe dir2/echo >  $ ls -l dir* >  dir1: >  total 52 >  -rwxr-xr-x 1 corinna vinschen 49166 2010-09-06 10:59 echo.exe > >  dir2: >  total 1 >  lrwxrwxrwx 1 corinna vinschen 31 2010-09-06

Re: .exe magic reloaded

2010-09-06 Thread Corinna Vinschen
dot, not slash? > So we have a symblic link to an executable from a different directory. > > Perls configuration script detected /home/prefix/gentoo/usr/bin/tr and > called it as /home/prefix/gentoo/usr/bin/tr.exe. That didn't work. > Obviously the .exe magic does

Re: .exe magic in Cygwin

2010-09-05 Thread Al
> > Sounds like you didn't run autoreconf (which would have been done > automatically via the supported mechanism). > I have added the autoreconf step to the Emerge scripts. Only one conflicts with a Gentoo patches, which I had to disable. Works fine now. Solved all problems from that corner.

.exe magic reloaded

2010-09-05 Thread Al
and called it as /home/prefix/gentoo/usr/bin/tr.exe. That didn't work. Obviously the .exe magic does not work for symbolic links from a different directory. I solved that by adding a second symbolic link /home/prefix/gentoo/usr/bin/tr.exe. What is the best way to go here? * Adapting all scri

Re: .exe magic in Cygwin

2010-09-03 Thread Al
2010/9/3 Al : > 2010/9/3 Al : Right. I applied it the traditional way. >>> >>>  Ah, you have to understand this about cygport patches: they only contain >>> patches for the source files, not the autogenerated ones.  So they have >>> patches for e.g. Makefile.am, configure.ac; but not for confi

Re: .exe magic in Cygwin

2010-09-03 Thread Al
2010/9/3 Al : >>> Right. I applied it the traditional way. >> >>  Ah, you have to understand this about cygport patches: they only contain >> patches for the source files, not the autogenerated ones.  So they have >> patches for e.g. Makefile.am, configure.ac; but not for configure or even >> Makef

Re: .exe magic in Cygwin

2010-09-03 Thread Al
>> Right. I applied it the traditional way. > >  Ah, you have to understand this about cygport patches: they only contain > patches for the source files, not the autogenerated ones.  So they have > patches for e.g. Makefile.am, configure.ac; but not for configure or even > Makefile.in.  It's vitall

Re: .exe magic in Cygwin

2010-09-03 Thread Al
> Cygport is rather similar to emerge/ebuild already.  You might find it > worthwhile to give it a look. > I am aware of this. I want come to a solution, that builds me from sources on any of Windows, Mac and Linux. One to rule them all. I did only find Gentoo Prefix to be able to do this. > If

Re: .exe magic in Cygwin

2010-09-02 Thread Charles Wilson
On 9/2/2010 7:46 PM, Dave Korn wrote: > I did once try running cygport on a linux box (with a cross-compiler). I > don't remember exactly what went wrong, it didn't work directly out of the > box, but it shouldn't be hard to fix. It's only the most recent release of cygport (0.10.0) that has ru

Re: .exe magic in Cygwin

2010-09-02 Thread Dave Korn
On 02/09/2010 21:44, Al wrote: >> Sounds like you didn't run autoreconf (which would have been done >> automatically via the supported mechanism). > > Right. I applied it the traditional way. Ah, you have to understand this about cygport patches: they only contain patches for the source files,

Re: .exe magic in Cygwin

2010-09-02 Thread Jeremy Bopp
On 9/2/2010 3:44 PM, Al wrote: >> setup.exe to download the sources and several prerequisite tools (cygport, >> autoconf, ...), then using 'cygport coreutils-8.5-1 prep make'. Other ways >> work, but I won't support them on this list. See also > > As a want to come a hybrid of Cygwin and Gentoos

Re: .exe magic in Cygwin

2010-09-02 Thread Al
> Sounds like you didn't run autoreconf (which would have been done > automatically via the supported mechanism). Right. I applied it the traditional way. > setup.exe to download the sources and several prerequisite tools (cygport, > autoconf, ...), then using 'cygport coreutils-8.5-1 prep make'.

Re: .exe magic in Cygwin

2010-09-02 Thread Eric Blake
On 09/02/2010 02:06 PM, Al wrote: I first compiled coreutils without the cygwin patch. It did compile but afterwards the compilation of findutils, etc. was broken. For example configure.status of wget was truncated at the top and out of order at the bottom. That stopped all further efforts of min

Re: .exe magic in Cygwin

2010-09-02 Thread Al
> > Coreutils tends to be an exception, because it is so core to the system. >  Other tools that I also maintain, like m4 or findutils, port with 0 > patches. > Thank you. That gives me back some optimism. I first compiled coreutils without the cygwin patch. It did compile but afterwards the comp

Re: .exe magic in Cygwin

2010-09-02 Thread Eric Blake
On 09/02/2010 01:25 PM, Al wrote: Hello, I would like to estimate theexpenses to port general linux sources to Cygwin. I did look into Cygwins patch for coreutils. It has 1231 lines of diff code. A lot of the stuff is related to the ".exe" magic done by cygwin. Do I have to

.exe magic in Cygwin

2010-09-02 Thread Al
Hello, I would like to estimate theexpenses to port general linux sources to Cygwin. I did look into Cygwins patch for coreutils. It has 1231 lines of diff code. A lot of the stuff is related to the ".exe" magic done by cygwin. Do I have to implement that magic in this extend

Wrong cp exe magic

2009-07-28 Thread Reini Urban
reate regular file `/bin/scriptindex': File exists $ cp -f /usr/src/xapian/xapian-omega-1.0.14a/.build/.libs/scriptindex.exe /bin/ At least --force should outsmart our .exe magic. -- Reini Urban http://phpwiki.org/ http://murbreak.at/ -- Problem reports: http://cygwin.com/pro

Re: [1.7] Surprising exe magic?

2009-06-02 Thread Corinna Vinschen
d, and you can rename it again explicitly to get the > name you really wanted: > > $ ./hello.test.x > Hello, .exe magic! > > ad...@ubik /tmp/exemagic > $ ls > hello.test.x.exe hw.c > > ad...@ubik /tmp/exemagic > $ mv hello.test.x.exe hello.test.x > > ad

[1.7] Surprising exe magic?

2009-05-24 Thread Dave Korn
20:36 hello.x -rw-r--r-- 1 DKAdmin None 121 May 24 20:36 hw.c ad...@ubik /tmp/exemagic $ ./hello.x Hello, .exe magic! ad...@ubik /tmp/exemagic $ mv hello.x hello.test.x ad...@ubik /tmp/exemagic $ ls -la total 125 drwxr-xr-x 1 DKAdmin None 0 May 24 20:36 . drwxrwxrwt 1 DKAdmin None 90112 May

Re: 'rm' immune to .exe magic?

2007-09-14 Thread Eric Blake
Dave Korn artimi.com> writes: > > > Just checking: is rm supposed to ignore exe magic, then? For now, yes. I tried it once, according to /usr/share/doc/Cygwin/coreutils- 6.9.README: -- coreutils-5.3.0-5 -- 2005-04-14 - Revert rm(1) implicit .exe handling, it b

'rm' immune to .exe magic?

2007-09-14 Thread Dave Korn
Just checking: is rm supposed to ignore exe magic, then? /artimi/software/firmware $ cp /bin/ls.exe /usr/local/bin/a2.exe (Makes no difference if I use "cp /bin/ls /usr/local/bin/a2" either). /artimi/software/fir

Re: .exe magic

2007-06-19 Thread Corinna Vinschen
On Jun 19 02:04, Charles Wilson wrote: > Corinna Vinschen wrote: > >Apart from that, I don't like what libtool does. I think it's a > >terrible idea to have a script and a binary with the same name (only > >differing by the .exe suffix) in the same directory. This behaviour > >breaks the CYGWIN=t

Re: .exe magic

2007-06-18 Thread Charles Wilson
Corinna Vinschen wrote: Apart from that, I don't like what libtool does. I think it's a terrible idea to have a script and a binary with the same name (only differing by the .exe suffix) in the same directory. This behaviour breaks the CYGWIN=transparent_exe option and there's no reliable way a

Re: .exe magic

2007-04-19 Thread Corinna Vinschen
Hi Chuck, On Apr 18 22:40, Charles Wilson wrote: > * libltdl/config/ltmain.m4sh [func_mode_link]: move wrapper > script writing from here... > [func_emit_libtool_wrapper_script]: to this new function, and > write to stdout > [func_mode_link]: move cwrapper source code writing f

Re: .exe magic

2007-04-18 Thread Charles Wilson
[This is a copy of a message already sent to the libtool and libtool-patches lists. sourceware was being very picky about the updated [Was: ...] subject line and bounced it, twice. So, I'm resending it under the original subject line. For fear of offending the filters again, I'm not even typ

Re: .exe magic

2007-04-18 Thread Ralf Wildenhues
Hello Charles, all, * Charles Wilson wrote on Wed, Apr 18, 2007 at 08:49:31PM CEST: > [added libtool to CC list] Thanks. > Corinna Vinschen wrote: > > > >Is there any chance that this could be changed in libtool? > > Absolutely. I outlined the steps necessary to do this: > http://cygwin.com/ml

Re: .exe magic

2007-04-18 Thread Charles Wilson
[added libtool to CC list] Corinna Vinschen wrote: On Apr 18 04:49, Charles Wilson wrote: The current .exe behavior has benefited from many years of tweaking and fine-tuning, across many different packages (cygwin, gcc, gdb, binutils, automake, autoconf, libtool, bash, coreutils, ...) to work

RE: .exe magic

2007-04-18 Thread Williams, Gerald S \(Jerry\)
course, we have the same situation now for .bat files and such, it's just not as common. (I'd rather have some flavour of PATHEXT magic than .exe magic anyway, but I'm certainly not going to bring *that* up.) :-) :-) :-) In any event, I almost never get to the end of a program

RE: .exe magic

2007-04-18 Thread Dave Korn
. And there might be >> some severe repurcussions in automake/autoconf where they currently are >> coded to handle $(EXEEXT) all over the place, if they do it based on >> hostname rather than on what the default gcc output is. I would have to >> remove some of the .exe mag

Re: .exe magic

2007-04-18 Thread Corinna Vinschen
On Apr 18 04:49, Charles Wilson wrote: > The current .exe behavior has benefited from many years of tweaking and > fine-tuning, across many different packages (cygwin, gcc, gdb, binutils, > automake, autoconf, libtool, bash, coreutils, ...) to work together to > give the current, mostly coherent

Re: .exe magic

2007-04-18 Thread Charles Wilson
they currently are coded to handle $(EXEEXT) all over the place, if they do it based on hostname rather than on what the default gcc output is. I would have to remove some of the .exe magic I've added in coreutils (but it would mean I'm closer to an upstream image). Um, some peopl

Re: .exe magic

2007-04-18 Thread Michael Hoffman
Frank Fesevur wrote: Larry Hall (Cygwin) wrote: Here's a naive thought. See if it makes any sense. We have lots of complicated logic to try to transparently handle ".exe" extensions. We have ".exe" extensions because Windows 9x/Me requires it to execute binaries. For the upcoming Cygwin 1.7 r

Re: .exe magic

2007-04-18 Thread Frank Fesevur
Larry Hall (Cygwin) wrote: Here's a naive thought. See if it makes any sense. We have lots of complicated logic to try to transparently handle ".exe" extensions. We have ".exe" extensions because Windows 9x/Me requires it to execute binaries. For the upcoming Cygwin 1.7 release (date TBD), we'

Re: .exe magic

2007-04-17 Thread Larry Hall (Cygwin)
dle > $(EXEEXT) all over the place, if they do it based on hostname rather than on > what the default gcc output is. I would have to remove some of the .exe > magic > I've added in coreutils (but it would mean I'm closer to an upstream image). Seems manageable but that&#

Re: .exe magic

2007-04-17 Thread Eric Blake
on what the default gcc output is. I would have to remove some of the .exe magic I've added in coreutils (but it would mean I'm closer to an upstream image). > > I realize this would be a hard break with the 1.5 Cygwin series since it > would force all Cygwin packages

Re: ln -s exe magic (coreutils 6.7-2)

2007-04-17 Thread Eric Blake
to see the truth - rather than creating "/foo", the broken .exe magic in ln 6.7 created "/foo.exe", but then the auto-exe magic in other commands (such as ls) means that 'ls foo' succeeds even if it had to do 'ls foo.exe' under the hood. > > rm /foo

.exe magic

2007-04-17 Thread Larry Hall (Cygwin)
Here's a naive thought. See if it makes any sense. We have lots of complicated logic to try to transparently handle ".exe" extensions. We have ".exe" extensions because Windows 9x/Me requires it to execute binaries. For the upcoming Cygwin 1.7 release (date TBD), we're dropping support for Windo

Re: ln -s exe magic (coreutils 6.7-2)

2007-04-17 Thread DePriest, Jason R.
On 4/9/07, Eric Blake wrote: [ cut out lots of useful information to save space ] Will your proposed changes in coreutils fix the following problem I just discovered today? Create a symbolic link ln -s /usr/bin/foo /foo where /usr/bin/foo is really usr/bin/foo.exe ls -l /foo returns foo -> /us

Re: ln -s exe magic (coreutils 6.7-2)

2007-04-09 Thread Eric Blake-1
ate dangling symlinks, and then make them non-dangling later. The way I see it: ~ if invoking ln, require the source to exist (but possibly with implicit .exe), and make the target end in .exe if the source did (including via implicit .exe) ~ if invoking ln --disable-exe-magic, require the source to

Re: ln -s exe magic (coreutils 6.7-2)

2007-04-09 Thread Brian Dessent
Eric Blake wrote: > when creating symlinks, I plan to still auto-append the .exe to the link > target if necessary (otherwise, exec*() succeeds but open() fails when > dereferencing the symlink), but not to the link name. That sounds correct. If open() fails on a link target that's missing an .e

Re: ln -s exe magic (coreutils 6.7-2)

2007-04-09 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Revisiting an old thread... According to Corinna Vinschen on 1/24/2007 7:38 AM: > On Jan 24 06:45, Eric Blake wrote: >> According to Corinna Vinschen on 1/24/2007 2:48 AM: >>> This looks rather like a problem with the exe magic i

Re: ln -s exe magic (coreutils 6.7-2)

2007-01-24 Thread Corinna Vinschen
On Jan 24 06:45, Eric Blake wrote: > According to Corinna Vinschen on 1/24/2007 2:48 AM: > > This looks rather like a problem with the exe magic in coreutils. FWIW, > > I never liked the idea to create "foo.exe.lnk" symlinks. They only slow > > down the symlink pr

Re: ln -s exe magic (coreutils 6.7-2)

2007-01-24 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Corinna Vinschen on 1/24/2007 2:48 AM: > > This looks rather like a problem with the exe magic in coreutils. FWIW, > I never liked the idea to create "foo.exe.lnk" symlinks. They only slow > down the symlin

Re: ln -s exe magic (coreutils 6.7-2)

2007-01-24 Thread Eric Blake
gt; and it runs >ln -s -f /usr/sbin/ssmtp /usr/sbin/sendmail Thanks for the excellent diagnosis. > > My suggestion is that by default ln -s should not do any magic. If some magic > is > desired, users can define an alias or shell function that adds > --enable-exe-magic I

Re: ln -s exe magic (coreutils 6.7-2)

2007-01-24 Thread Corinna Vinschen
ult ln -s should not do any magic. If some > > magic is > > desired, users can define an alias or shell function that adds > > --enable-exe-magic > > > > Pierre > > Probably just an oversight (in regards to symlinks) in the code handling .exe > vs extention

Re: ln -s exe magic (coreutils 6.7-2)

2007-01-23 Thread Christopher Layne
mmands "sendmail" and "sendmail.exe" produce different results, > cron keeps using exim and if exim is uninstalled then cron misbehaves. > > My suggestion is that by default ln -s should not do any magic. If some magic > is > desired, users can define an alias or sh

ln -s exe magic (coreutils 6.7-2)

2007-01-23 Thread Pierre A. Humblet
misbehaves. My suggestion is that by default ln -s should not do any magic. If some magic is desired, users can define an alias or shell function that adds --enable-exe-magic Pierre -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/p

Re: .exe magic doesn't work with gprof

2005-07-20 Thread Krzysztof Duleba
Christopher Faylor wrote: On Wed, Jul 20, 2005 at 04:04:54PM +0200, Krzysztof Duleba wrote: But how does gprof know that foo doesn't exist? It has to open or stat it. I thought that both open and stat calls support exe magic. Sorry. That's not how it works. The only "ex

Re: .exe magic doesn't work with gprof

2005-07-20 Thread Christopher Faylor
On Wed, Jul 20, 2005 at 04:04:54PM +0200, Krzysztof Duleba wrote: >But how does gprof know that foo doesn't exist? It has to open or stat it. >I thought that both open and stat calls support exe magic. Sorry. That's not how it works. The only "exe magic" in the cygw

Re: .exe magic doesn't work with gprof

2005-07-20 Thread Eric Blake
> > But how does gprof know that foo doesn't exist? It has to open or stat it. > I thought that both open and stat calls support exe magic. stat() and exec*() support exe magic, open() does not. I don't know exactly how gprof works, but it is probably doing an open() and f

Re: .exe magic doesn't work with gprof

2005-07-20 Thread Krzysztof Duleba
Dave Korn wrote: .exe magic doesn't work with gprof. Any ideas why? And indeed, it doesn't work the other way round... [carrying on from your testcase:] [EMAIL PROTECTED] /artimi/firmware/test> mv foo.exe foo [EMAIL PROTECTED] /artimi/firmware/test> rm gmon.out [EMAIL PR

RE: .exe magic doesn't work with gprof

2005-07-20 Thread Dave Korn
Original Message >From: Krzysztof Duleba >Sent: 20 July 2005 07:07 > .exe magic doesn't work with gprof. Any ideas why? And indeed, it doesn't work the other way round... [carrying on from your testcase:] [EMAIL PROTECTED] /artimi/firmware/test> mv foo.ex

.exe magic doesn't work with gprof

2005-07-19 Thread Krzysztof Duleba
.exe magic doesn't work with gprof. Any ideas why? $ cat foo.c int main(){ } $ gcc -pg -g foo.c -o foo.exe $ ./foo $ gprof foo foo: No such file or directory $ gprof foo.exe Flat profile: [...] Regards Krzysztof Duleba -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-s