This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: (toplevel b-i-b patch) remove more cruft, take two


On Sun, Nov 24, 2002 at 03:37:50PM -0500, Nathanael Nerode wrote:
> Aaargh.  And I found the problem.
> 
> Keep the brackets.  Version one of my patch is correct, version two is 
> wrong.
> 
> rm -f foo *can* return a non-zero exit status when foo is missing, and 
> if it does we want to continue.

Where? The definition is:
Do not prompt for confirmation. Do not write diagnostic messages or
modify the exit status in the case of nonexistent operands. Any
previous occurrences of the -i option shall be ignored.

And if that's what you want to handle, I don't think the old or new
code would do what you're saying.  And you'd just say "rm -f foo ||
true"...

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]