Re: [Pyunit-interest] PyUnitTestBrowser - Memory leak
Brought to you by:
purcell
From: Steve P. <ste...@ya...> - 2002-06-04 06:11:11
|
Alexander Garden wrote: > > The slash is not optional because we don't want your BASH or whatever to > > expand the *. We need to expand it for you, recursively in each sub > > directory. Like 'find'. > > Being a Unix guy, I'd much, much rather have the shell do the work of > finding files for me. That's what it's good at. That's what it's there > for, among other things. If I needed to recursively find files, I'd do > $ ./browser.py `find . -name 'test*.py'` > which is admittedly rather clumsy if one must type it often, but one > shouldn't have to, right? :) And it is easily bound up into a shell > script or alias anyway. I second that. On UNIX, scripts shouldn't be doing any globbing themselves. Better explicit than implicit, etc. etc. And on a practical note, the more magic is in a script, the more bugs and maintenance issues appear later. (Perl, anyone? :-) -Steve |