bugGNUstep - Bugs: bug #30086, defaults write doesn't support...


bug #30086: defaults write doesn't support -dict-add, -array-add

Submitter:  Doug Simons <theeggcamefirst>
Submitted:  Tue 08 Jun 2010 05:59:50 PM UTC
Category:  Application Severity:  3 - Normal
Item Group:  Change Request Status:  None
Privacy:  Public Assigned to:  CaS
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

Mon 09 Nov 2020 10:38:36 AM UTC, comment #1: 

I don't think this request makes much sense on its own.  The GNUstep defaults command was a simple early replacement for NeXTstep tools, but the later Apple defaults command operates quite differently, so if we want Apple compatibility we need a rewrite.  I guess while maintaining current functionality (a little of which the Apple command doesn't seem to support), we would need to add support for:

import, export, and find operations
The different types of domain specification (name, -app ..., -globalDomain, path)
The different value specifications
  -string <string_value>
  -data <hex_digits>
  -int[eger] <integer_value>
  -float  <floating-point_value>
  -bool[ean] (true | false | yes | no)
  -date <date_rep>
  -array <value1> <value2> ...
  -array-add <value1> <value2> ...
  -dict <key1> <value1> <key2> <value2> ...
  -dict-add <key1> <value1> ...

So I see this as a request for a new tool

Richard Frith-Macdonald <CaS>
Group Member
Tue 08 Jun 2010 05:59:50 PM UTC, original submission:  

The 'defaults write' command doesn't support the -dict-add and -array-add options available in the Apple version. This makes working with default values which are arrays or dictionaries much more difficult in some situations.

Doug Simons <theeggcamefirst>


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

Attach Files:

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 (Posted a comment)
  • -email is unavailable- added by gcasa (Updated the item)
  • -email is unavailable- added by theeggcamefirst (Submitted 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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-11-09 CaS Item GroupBug Change Request
    2020-11-01 gcasa Assigned toNone CaS

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code