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

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