Messages in this thread | | | Date | Fri, 11 Feb 2000 15:41:53 -0500 (EST) | From | "Richard B. Johnson" <> | Subject | Re: 'core' (patch) |
| |
On Fri, 11 Feb 2000 willy@thepuffingroup.com wrote:
> On Fri, Feb 11, 2000 at 11:22:51AM -0500, Richard B. Johnson wrote: > > - rm -f core `find . -type f -name 'core' -print` > > - rm -f core `find . -type f -name '.*.flags' -print` > > + rm -f Core `find . -type f -name 'core' -print` > > + rm -f Core `find . -type f -name '.*.flags' -print` > > - rm -f core `find . -type f -size 0 -print` > > + rm -f Core `find . -type f -size 0 -print` > > - rm -f core `find . \( -name '*.orig' -o -name '*.rej' -o -name '*~' \ > > + rm -f Core `find . \( -name '*.orig' -o -name '*.rej' -o -name '*~' \ > > these are all wrong. they fail to remove the core file which may or may > not have been dumped. the solution is to fix the other programs in any > case, not change the name of a _directory_ which cannot be a core file, > by definition.
Wrong. Find out how 'find' works. The first parameter is the directory. This was correctly changed.
Cheers, Dick Johnson
Penguin : Linux version 2.3.41 on an i686 machine (800.63 BogoMips).
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |