public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* problem with bash recognizing c-file with cygwin under eclipse
       [not found] <CAB5V_nbRAFs-OhFLetF8+cCnQutV0+kyx_30c-ECr4cOXnR4Jg@mail.gmail.com>
@ 2011-08-20 15:13 ` Bram Kouwenberg
  2011-08-20 16:22   ` Eliot Moss
  0 siblings, 1 reply; 2+ messages in thread
From: Bram Kouwenberg @ 2011-08-20 15:13 UTC (permalink / raw)
  To: cygwin

Hello,

I am using Cygwin under Eclipse C/C++. I am trying to compile/run a
simple c program with gcc, but the file is not found by the bash
shell. Neither gcc or ls -la can find the .c file but ls does show the
other contents of the project directory. I'm going crazy not being
able to find out why the file is not recognized. Its there in the
eclipse tree and in windows explorer..

heres the result of a irc chat on the #bash channel

appreciating any response on this..

B


<helpme> hi 2 all
<helpme> have problem with cygwin bash shell: ls -la does not recognize .c file
<helpme> but does list all other items in dir
<kon> not recognize?
<helpme> does not list test.c
<helpme> I use cygwin in eclipse c/c++ and test.c is a node in the
project tree - if this helps
<helpme> ls -la recognize all in project dir but test.c
<helpme> really weird
<kon> hmm indeed weird
<kon> i never used eclipse, does it maybe have some integrated filter?
<kon> this is not default bash behaviour
<helpme> integrated bash filter?
<helpme> doubt it
<helpme> maybe its a cygwin/c thing
<kon> yeah i thought maybe something like a set env var
<kon> could just be windows though yeah =)

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

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

* Re: problem with bash recognizing c-file with cygwin under eclipse
  2011-08-20 15:13 ` problem with bash recognizing c-file with cygwin under eclipse Bram Kouwenberg
@ 2011-08-20 16:22   ` Eliot Moss
  0 siblings, 0 replies; 2+ messages in thread
From: Eliot Moss @ 2011-08-20 16:22 UTC (permalink / raw)
  To: cygwin

On 8/20/2011 11:12 AM, Bram Kouwenberg wrote:
> Hello,
>
> I am using Cygwin under Eclipse C/C++. I am trying to compile/run a
> simple c program with gcc, but the file is not found by the bash
> shell. Neither gcc or ls -la can find the .c file but ls does show the
> other contents of the project directory. I'm going crazy not being
> able to find out why the file is not recognized. Its there in the
> eclipse tree and in windows explorer..

I can't think of anything about test.c, but I do suggest that that
is not a very good name to use.  You see, test (under Unix) /
test.exe (under Cygwin) is the name of a built-in file (do "man
test" to find out about it), so compiling and trying to run the
resulting file is not a great idea because of that clash. And
if you were trying to run it and the current directory came after
the directory containing the usual test.exe, you would be surprised
that your file did not run (unless you ran it by typing ./test).
Etc.

Best wishes - Eliot Moss

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

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

end of thread, other threads:[~2011-08-20 16:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAB5V_nbRAFs-OhFLetF8+cCnQutV0+kyx_30c-ECr4cOXnR4Jg@mail.gmail.com>
2011-08-20 15:13 ` problem with bash recognizing c-file with cygwin under eclipse Bram Kouwenberg
2011-08-20 16:22   ` Eliot Moss

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