It's been rumoured that [EMAIL PROTECTED] said:
> 
> 
> 
> On Mon, 29 May 2000, vito wrote:
> 
> >
> > May i ask you one question?
> > How could I make one executable file????
> > I make one file and use
> > GCC -o file file.c
> > and I cannot execute the file.
> > The error message is the "bash : file :  command not found".
> > Why????
> 
> Because it didn't find it where it looks for commands.

Actually, because it found /usr/bin/file instead, and you failed to
provide an argument.   'file' is a unix command.

Note that it is also a bad idea to call your test program 'test'
because /usr/bin/test is aonther unix command.

--linas

> 
> > Please help to resolve the problem.
> > Thank you.                          vito
> 
> execute the file like this:  ./file
> 
> This is linux-gcc.  The current directory is not in the search path for
> commands unless you edit your shell startup file[s] and put it there,
> (the folks who make distros think it is bad security policy to be able
> to run things from your current directory without meaning to) so if you
> want to run file in the current directory you must make explicit
> reference to the current directory with ./file.  Of course, absolute
> pathname will also work.
> 

Reply via email to