From: Moritz B. <bar...@gm...> - 2003-06-13 09:17:10
|
Hi, me again, another problem, very very riddling: Sometimes, I construct a list of files to be edited, e.g. with "find" and "grep": $ find -type f ! -name "*~" | xargs grep "something" | cut -d: -f1 Piping this list to "xargs joe" should call joe with these filenames as arguments (assuming the list is short enough). No fiddling with file descriptors or anything, or? Yet $ find -type f ! -name "*~" | xargs grep "something" | cut -d: -f1 | xargs joe fails miserably, joe mucking up the terminal a bit (though you see the effort of joe opening some virtual windows with these files). Calling $ joe `find -type f ! -name "*~" | xargs grep "something" | cut -d: -f1` is fine, though. Any explanation? I suppose it _must_ be something with joe losing some file descriptors or the likes... And shouldn't be the case! (Platform is Linux, shell is bash-2.05, BTW.) Thanks, Moritz |