Re: 'core' (patch)

From: Richard B. Johnson (root@chaos.analogic.com)
Date: Fri Feb 11 2000 - 22:12:33 EST


On Sat, 12 Feb 2000, Guest section DW wrote:

> On Fri, Feb 11, 2000 at 11:22:51AM -0500, Richard B. Johnson wrote:
> >
> > I think it would be "nice" to change the kernel directory name,
> > presently "core", to "Core".
>
> > - rm -f core `find . -type f -name '.*.flags' -print`
> > + rm -f Core `find . -type f -name '.*.flags' -print`
>
> Funny.
> You see, many older versions of rm will give an error message
> when called without argument:
>
> # rm -f
> Usage: rm [-dfirvR] [--directory] [--force] [--interactive] [--recursive]
> [--verbose] path...
>
> So, a construction like
> rm -f core `find stuff`
> is meant to make sure that rm has at least one argument.
> This is not the directory name, but a dummy filename,
> chosen such that we don't mind if it is actually removed.
>

Correct. And it won't remove a directory without the '-r'. So
the original writer used the directory name to assure that it
had an argument. In changing the name (which they are not going
to do), I followed the same template.

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/



This archive was generated by hypermail 2b29 : Tue Feb 15 2000 - 21:00:22 EST