strange ( * vs ./* )

strange ( * vs ./* )

Amos Shapira amos.shapira at gmail.com
Wed Apr 9 12:59:10 IDT 2014


Perhaps something fishy with the shell glob expansion options. What does
"echo *" give vs "echo ./*"?



On 9 April 2014 19:52, Erez D <erez0001 at gmail.com> wrote:

> erez at homer:~$ grep pppd *
> erez at homer:~$
>
> however:
>
> erez at homer:~$ grep pppd ./*
> ./chat.sh:pppd connect 'chat -v -s ABORT ERROR ABORT'
>
> and:
>
> erez at homer:~$ grep pppd chat.sh
> pppd connect 'chat -v -s ABORT ERROR ABORT'
>
> strange !!!
>
>
>
> btw:
> erez at homer:~$ echo $SHELL
> /bin/bash
> erez at homer:~$ cat /etc/issue
> CentOS release 6.3 (Final)
> Kernel \r on an \m
> erez at homer:~$ uname -a
> Linux homer 2.6.32-358.14.1.el6.x86_64 #1 SMP Tue Jul 16 23:51:20 UTC 2013
> x86_64 x86_64 x86_64 GNU/Linux
>
>
>
>
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>


-- 
 [image: View my profile on LinkedIn]
<http://www.linkedin.com/in/gliderflyer>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20140409/ed8a9e2d/attachment.html>


More information about the Linux-il mailing list