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

Tue 10 Dec 2024 01:57:46 AM UTC, comment #5: 

PS: this patch also includes patch #10454

Dominik Kummer <domson>
Tue 10 Dec 2024 01:55:27 AM UTC, comment #4: 

I upload a bugfix patch here directly.

kind regards

(file #56685)

Dominik Kummer <domson>
Tue 19 Nov 2024 03:25:30 PM UTC, comment #3: 

On 11/17/24 5:38 AM, Dominik Kummer wrote:

> Follow-up Comment #2, patch #10453 (group bash):
>
> May I offer any help with this? Can I prepare and provide a better patch or a
> loadable builtin example?
>


I haven't started looking at it yet, so I can't say.

Chet Ramey <chet>
Group administrator
Sun 17 Nov 2024 10:38:05 AM UTC, comment #2: 

May I offer any help with this? Can I prepare and provide a better patch or a loadable builtin example?

Dominik Kummer <domson>
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
file #56685:  bugfix_dynamic_cell.patch added by domson (10KiB - text/x-patch - the initialization of the new function pointers where incomplete and caused segmentation fault with latest git version)

 

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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-12-10 domson Attached File- Added bugfix_dynamic_cell.patch, #56685
    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.14-573e.
    Corresponding source code