strange ( * vs ./* )

2014-04-09 Thread Erez D
erez@homer:~$ grep pppd * erez@homer:~$ however: erez@homer:~$ grep pppd ./* ./chat.sh:pppd connect 'chat -v -s ABORT ERROR ABORT' and: erez@homer:~$ grep pppd chat.sh pppd connect 'chat -v -s ABORT ERROR ABORT' strange !!! btw: erez@homer:~$ echo $SHELL /bin/bash erez@homer:~$ cat

Re: strange ( * vs ./* )

2014-04-09 Thread Valery Reznic
Strange indeed. And what is output of: echo * and echo ./* From: Erez D erez0...@gmail.com To: linux-il linux-il@cs.huji.ac.il Sent: Wednesday, April 9, 2014 12:52 PM Subject: strange ( * vs ./* ) erez@homer:~$ grep pppd * erez@homer:~$ however:

Re: strange ( * vs ./* )

2014-04-09 Thread Amos Shapira
Perhaps something fishy with the shell glob expansion options. What does echo * give vs echo ./*? On 9 April 2014 19:52, Erez D erez0...@gmail.com wrote: erez@homer:~$ grep pppd * erez@homer:~$ however: erez@homer:~$ grep pppd ./* ./chat.sh:pppd connect 'chat -v -s ABORT ERROR ABORT'

Re: strange ( * vs ./* )

2014-04-09 Thread Matan Ziv-Av
On Wed, 9 Apr 2014, Erez D wrote: erez@homer:~$ grep pppd * erez@homer:~$ however: erez@homer:~$ grep pppd ./* ./chat.sh:pppd connect 'chat -v -s ABORT ERROR ABORT' Do you have a file whose name starts with a dash (-)? -- Matan Ziv-Av. ma...@svgalib.org

Re: strange ( * vs ./* )

2014-04-09 Thread Oleg Goldshmidt
Matan Ziv-Av ma...@svgalib.org writes: On Wed, 9 Apr 2014, Erez D wrote: erez@homer:~$ grep pppd * erez@homer:~$ however: erez@homer:~$ grep pppd ./* ./chat.sh:pppd connect 'chat -v -s ABORT ERROR ABORT' Do you have a file whose name starts with a dash (-)? Definitely a candidate...

Re: strange ( * vs ./* )

2014-04-09 Thread Erez D
On Wed, Apr 9, 2014 at 1:17 PM, Matan Ziv-Av ma...@svgalib.org wrote: On Wed, 9 Apr 2014, Erez D wrote: erez@homer:~$ grep pppd * erez@homer:~$ however: erez@homer:~$ grep pppd ./* ./chat.sh:pppd connect 'chat -v -s ABORT ERROR ABORT' Do you have a file whose name starts with a dash

strange mac address issue

2014-04-09 Thread Erez D
i have an embbeded linux board. connected a usb2eth (rj45), and through that to the lan. suprisingly, another usb2eth on another copy of the embedded board, has the same mac address, and so i get conflicts on the network. swapping different modules of usb2eth on the same board gives same mac

Re: strange ( * vs ./* )

2014-04-09 Thread Amos Shapira
Good catch Matan. 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. On 10 Apr 2014 00:38, Erez D erez0...@gmail.com wrote: On Wed, Apr 9, 2014 at 1:17 PM, Matan Ziv-Av ma...@svgalib.org