<p dir="ltr">Good catch Matan.<br>
Another way to avoid this is to add "--" (two dashes) after all the flags and before the file names to tell grep that everything after it is a file name.</p>
<div class="gmail_quote">On 10 Apr 2014 00:38, "Erez D" <<a href="mailto:erez0001@gmail.com">erez0001@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 9, 2014 at 1:17 PM, Matan Ziv-Av <span dir="ltr"><<a href="mailto:matan@svgalib.org" target="_blank">matan@svgalib.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Wed, 9 Apr 2014, Erez D wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
erez@homer:~$ grep pppd *<br>
erez@homer:~$<br>
<br>
however:<br>
<br>
erez@homer:~$ grep pppd ./*<br>
./chat.sh:pppd connect 'chat -v -s ABORT ERROR ABORT'<br>
</blockquote>
<br></div>
Do you have a file whose name starts with a dash (-)?<span><font color="#888888"><br>
<br></font></span></blockquote><div>that was the issue.<br>i had a file called '-q' .<br>renaming it solved it <br><br></div><div>thanks.<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span><font color="#888888">
<br>
-- <br>
Matan Ziv-Av. <a href="mailto:matan@svgalib.org" target="_blank">matan@svgalib.org</a><br>
<br>
<br>
</font></span></blockquote></div><br></div></div>
<br>_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
<br></blockquote></div>