Re: What is wrong with the name excel?

2020-04-17 Thread Greywolf
On 4/17/2020 11:01, Eliot Moss wrote:
> On 4/17/2020 1:24 PM, Erik Soderquist via Cygwin wrote:
> What seems a little odd to me is this.  If I had invoked via:
> 
>     excel.exe
> 
> I would not be surprised the MS Excel would launch, because it is probably
> earlier in the path.  But the OP said he typed:
> 
>     ./excel.exe
> 
> So I am surprised, given the explicit path.  Which leads me to a background
> wondering of whether ./excel.exe has execute permission set.  If not maybe
> the search would continue, trying to find something on the path that could
> be executed?  That would surprise me a little, but I'd have to go read the
> fine print on bash, etc.

If it didn't find it in the path at all, one expects (in a reasonable
environment) that the complaint "Command not found" would issue.

> 
> Regards - Eliot Moss
> -- 
> Problem reports:  https://cygwin.com/problems.html
> FAQ:  https://cygwin.com/faq/
> Documentation:    https://cygwin.com/docs.html
> Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: What is wrong with the name excel?

2020-04-17 Thread Andrey Repin
Greetings, Gerlach van Beinum!

> I made a program to read a csv file from Excel. I called it excel.c
> and it made an executable excel.exe
> If irun that executable with:
> ./excel.exe
> nothing happens, i.i. no output.

> If I rename it to a.exe it runs OK.

> What about this name excel??

> My Cygwin version is up-to-date.

Unable to repro'd.
Win7 and Win10 1909.


-- 
With best regards,
Andrey Repin
Saturday, April 18, 2020 3:01:28

Sorry for my terrible english...

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: What is wrong with the name excel?

2020-04-17 Thread Eliot Moss



Something that does work is to define a bash function name excel.  Within that
you could invoke an executable called myexcel, etc.  An alias probably works,
too.  Not sure about a symlink (and they come in different flavors).  But
these just paper over that weird special-ness.  Windows is odd ...

Best - Eliot
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: What is wrong with the name excel?

2020-04-17 Thread Tony Richardson via Cygwin
On Fri, Apr 17, 2020 at 1:02 PM Eliot Moss  wrote:

> On 4/17/2020 1:24 PM, Erik Soderquist via Cygwin wrote:
> > On Fri, Apr 17, 2020 at 7:11 AM Gerlach van Beinum wrote:
> >>
> >> I made a program to read a csv file from Excel. I called it excel.c
> >> and it made an executable excel.exe
> >> If irun that executable with:
> >> ./excel.exe
> >> nothing happens, i.i. no output.
> >>
> >> If I rename it to a.exe it runs OK.
> >>
> >> What about this name excel??
> >
> > I believe this is actually a Windows issue; Windows recognizes
> > "excel.exe" as 'a Microsoft package' and intercepts the call to launch
> > the program, though I would expect Microsoft Excel to launch rather
> > than 'nothing happening'
> >
> > I've had this problem before on hosts that did not even have Cygwin
> > installed when the executable file name matched an existing 'Microsoft
> > package'
>
> What seems a little odd to me is this.  If I had invoked via:
>
>  excel.exe
>
> I would not be surprised the MS Excel would launch, because it is probably
> earlier in the path.  But the OP said he typed:
>
>  ./excel.exe
>
> So I am surprised, given the explicit path.  Which leads me to a background
> wondering of whether ./excel.exe has execute permission set.  If not maybe
> the search would continue, trying to find something on the path that could
> be executed?  That would surprise me a little, but I'd have to go read the
> fine print on bash, etc.
>
> Regards - Eliot Moss
>

I am surprised but, I see the same behavior.   No output from an executable
called excel.exe.  winword.exe appears to be another "special" name.

Tony Richardson
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: What is wrong with the name excel?

2020-04-17 Thread Eliot Moss

On 4/17/2020 1:24 PM, Erik Soderquist via Cygwin wrote:

On Fri, Apr 17, 2020 at 7:11 AM Gerlach van Beinum wrote:


I made a program to read a csv file from Excel. I called it excel.c
and it made an executable excel.exe
If irun that executable with:
./excel.exe
nothing happens, i.i. no output.

If I rename it to a.exe it runs OK.

What about this name excel??


I believe this is actually a Windows issue; Windows recognizes
"excel.exe" as 'a Microsoft package' and intercepts the call to launch
the program, though I would expect Microsoft Excel to launch rather
than 'nothing happening'

I've had this problem before on hosts that did not even have Cygwin
installed when the executable file name matched an existing 'Microsoft
package'


What seems a little odd to me is this.  If I had invoked via:

excel.exe

I would not be surprised the MS Excel would launch, because it is probably
earlier in the path.  But the OP said he typed:

./excel.exe

So I am surprised, given the explicit path.  Which leads me to a background
wondering of whether ./excel.exe has execute permission set.  If not maybe
the search would continue, trying to find something on the path that could
be executed?  That would surprise me a little, but I'd have to go read the
fine print on bash, etc.

Regards - Eliot Moss
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: What is wrong with the name excel?

2020-04-17 Thread Csaba Ráduly via Cygwin

Hi Gerlach,

On 17/04/2020 13:10, Gerlach van Beinum via Cygwin wrote:

I made a program to read a csv file from Excel. I called it excel.c
and it made an executable excel.exe
If irun that executable with:
./excel.exe
nothing happens, i.i. no output.


Try running it under gdb. You should get a better description than "no output".



If I rename it to a.exe it runs OK.

What about this name excel??


It's used by a fairly popular application published by a legacy software vendor 
headquartered in Redmond, Washington.




My Cygwin version is up-to-date.



I believe it when I see it (the output of cygcheck -s -r -v, attached to the 
email).

Csaba
--
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformat way
to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: What is wrong with the name excel?

2020-04-17 Thread Erik Soderquist via Cygwin
On Fri, Apr 17, 2020 at 7:11 AM Gerlach van Beinum wrote:
>
> I made a program to read a csv file from Excel. I called it excel.c
> and it made an executable excel.exe
> If irun that executable with:
> ./excel.exe
> nothing happens, i.i. no output.
>
> If I rename it to a.exe it runs OK.
>
> What about this name excel??

I believe this is actually a Windows issue; Windows recognizes
"excel.exe" as 'a Microsoft package' and intercepts the call to launch
the program, though I would expect Microsoft Excel to launch rather
than 'nothing happening'

I've had this problem before on hosts that did not even have Cygwin
installed when the executable file name matched an existing 'Microsoft
package'

-- Erik
--
"I do not think any of us are truly sane, Caleb. Not even you. Courage
is not sanity. Being willing to die for someone else is not sanity."
... "Love is not sane, nor is faith." ... "If sanity lacks those
things, Caleb, I want no part of it."

-- Alexandria Terri in "Weaving the Wyvern" by Alexis Desiree Thorne
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


What is wrong with the name excel?

2020-04-17 Thread Gerlach van Beinum via Cygwin
I made a program to read a csv file from Excel. I called it excel.c
and it made an executable excel.exe
If irun that executable with:
./excel.exe
nothing happens, i.i. no output.

If I rename it to a.exe it runs OK.

What about this name excel??

My Cygwin version is up-to-date.

-- 
Gerlach van Beinum
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple