From: Wolfgang Denk Date: Thu, 14 Feb 2008 00:11:43 +0100 Subject: [U-Boot-Users] Delete all env vars except read onlys In-Reply-To: Your message of "Wed, 13 Feb 2008 17:04:49 CST." <47B37791.3010109@freescale.com> Message-ID: <20080213231143.C28F8243A7@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <47B37791.3010109@freescale.com> you wrote: > > > Oops??? "rm" never asks unless you ask it to ask. > > Not true. It will ask if you don't have write permission to the file, > even if you are able to delete because you have write permission to the > directory. Does it? Indeed. Must be a GNUism. I bet this was't there in Unix v6 when I learned it ;-) You are right, but this is still a special case where another, explicit protection is being overwritten. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de You got to learn three things. What's real, what's not real, and what's the difference." - Terry Pratchett, _Witches Abroad_