bugGNUstep - Bugs: bug #17810, defaults delete fails silently

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #17810: defaults delete fails silently

Submitted by:  Sheldon Gill <sheldon>
Submitted on:  Wed 20 Sep 2006 05:17:47 AM UTC  
 
Category: Base/FoundationSeverity: 2 - Minor
Item Group: Change RequestStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed 20 Sep 2006 05:29:04 AM UTC, comment #1:

The aim of a deletion is to leave the defaults database so that it doesn't contain the specified item ... so a delete of a non-existent item is always a success.
The defaults program is silent when it performs a successful operation on the database.

For consistency, if we want it to report more status information, it should do it all the time.
eg.
'write altered database to contain new value',
'write left database unchanged because new value is the same as old value'
'delete removed value from database'
'delete left database unchanged because value was not present'

Perhaps a '-Verbose YES' command line option would be good?

Richard Frith-Macdonald <CaS>
Project Member
Wed 20 Sep 2006 05:17:47 AM UTC, original submission:

If you issue

defaults delete NonExistentDomain

it will simply return quietly.
It really should report that NonExistentDomain doesn't exist so deleting it failed.

Sheldon Gill <sheldon>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 19 Jan 2007 11:04:24 AM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Wed 20 Sep 2006 05:29:04 AM UTCCaSItem GroupBug=>Change Request

    Back to the top


    Powered by Savane 3.1-cleanup1