Re: 'core' (patch)

From: Guest section DW (dwguest@win.tue.nl)
Date: Fri Feb 11 2000 - 21:07:19 EST


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.

-
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