patchThe GNU Bourne-Again SHell - Patches: patch #10453, Introducing dynamic_cell for...

 
 

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

patch #10453: Introducing dynamic_cell for SHELL_VAR

Submitter:  Dominik Kummer <domson>
Submitted:  Wed 08 May 2024 08:26:30 PM UTC
   
 
Category:  None Priority:  7 - High
Status:  In Progress Privacy:  Public
Assigned to:  None Open/Closed:  Open

Wed 15 May 2024 05:48:34 PM UTC, comment #1: 

Thanks. I'll take a look at this after the bash-5.3 release process is further along.

Chet Ramey <chet>
Group administrator
Wed 08 May 2024 08:26:30 PM UTC, original submission:  

This patch introduces dynamic_cell function pointer for SHELL_VAR to handle array subscript dynamically. It enables loadable builtin developers to implement assoc and array variables which act as interface for custom data backends.

For example something like this would be possible:

$ enable -f jsn jsn # enable json backend loadable builtin
$ jsn data=/path/to/backend.json # builtin processes argument assignment to setup data model and json-c interface
$ echo ${data[/json/pointer/to/key]}
Contains a Value
$ data[/json/pointer/to/key]="Contains a new Value"

An example loadable builtin showcasing this feature should be added, as it is a simple scriptable notation to access local and remote data

Dominik Kummer <domson>

 

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

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by chet (Posted a comment)
  • -email is unavailable- added by domson (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.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-05-15 chet StatusNone In Progress
    2024-05-08 domson Attached File- Added 0001-introducing-dynamic_cell-for-SHELL_VAR.patch, #56027

    Back to the top

    Powered by Savane 3.13-c54d.
    Corresponding source code