strange phenomenon with grep