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

Group
 
 

bug #17810: defaults delete fails silently

Submitter:  Sheldon Gill <sheldon>
Submitted:  Wed 20 Sep 2006 05:17:47 AM UTC
   
 
Category:  Base/Foundation Severity:  2 - Minor
Item Group:  Change Request Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-01-19 CaS StatusNone Fixed
        Open/ClosedOpen Closed
    2006-09-20 CaS Item GroupBug Change Request

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code