This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using grep from within a .cmd or .bat file in Windows


Keith Moore wrote:
Tzuriel wrote:


grep --help
pause

inside a file called grep.cmd,


"grep.cmd" is getting executed recursively. You
need to name your .cmd file something other than
"grep".

Or invoke "grep.exe --help". Or if you want to experiment, specify the exact path to grep. Or if you love to experiment, make sure grep.cmd is not in the current directory and not in any PATH entry, so that you have to invoke it with an explicit path.


Stein

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]