bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exit status of rm


From: James Youngman
Subject: Re: exit status of rm
Date: Thu, 23 Jun 2005 22:34:33 +0100
User-agent: Mutt/1.3.28i

On Thu, Jun 23, 2005 at 08:45:05PM +0000, Eric Blake wrote:

> This puts the invocation of rm without arguments in the
> implementation's realm, where currently, coreutils is not consistent
> on what it returns:
> 
> $ rm
> rm: missing operand
> Try `rm --help' for more information.
> $ echo $?   # used improperly
> 1
> $ rm -f
> $ echo $?    # all (zero) calls to unlink succeeded
> 0

Personally I think this is exactly the right way to do it (both
cases).

James.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]