strange ( * vs ./* )
Oleg Goldshmidt
pub at goldshmidt.org
Wed Apr 9 17:33:35 IDT 2014
Matan Ziv-Av <matan at svgalib.org> writes:
> On Wed, 9 Apr 2014, Erez D 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'
>
> Do you have a file whose name starts with a dash (-)?
Definitely a candidate... Some less likely things to check:
Verify there is no alias to grep (or script in path) with --exclude of
some sort, or --null, or some other weird stuff.
Check GLOBIGNORE.
What does "shopt -s" say? Is there anything special, e.g., in extglob?
SHELLOPTS? BASHOPTS?
--
Oleg Goldshmidt | pub at goldshmidt.org
More information about the Linux-il
mailing list