lkml.org 
[lkml]   [2000]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: '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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.091 / U:0.996 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site