[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
M-x grep: time to clean up /dev/null kludge
From: |
Dan Jacobson |
Subject: |
M-x grep: time to clean up /dev/null kludge |
Date: |
15 Sep 2001 10:32:02 +0800 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
You know, something has to be done about /dev/null kludge in M-x grep:
(grep "grep -n -e www *|wc")
cd ~/geocities/
grep -n -e www *|wc /dev/null
0 0 0 /dev/null
grep finished (matches found) at Sat Sep 15 10:21:46
I mean I know it is there to modify grep output in the minimal case of
one file name etc. But, then useful commands like
(grep "grep -n -e www *|grep -v http://")
are precluded. I know what you are going to say: "M-x grep was not
intended for such complex uses. If you want complex uses, use M-x
compile." However, one often starts with simple uses, refines and
refines, and then just wants to add a tiny pipe at the end...
That they must then copy everything over to an M-x compile command is
kind of laborsome.
--
http://www.geocities.com/jidanni Tel+886-4-25854780