bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New Feature Request


From: Léa Gris
Subject: Re: New Feature Request
Date: Sun, 27 Dec 2020 20:26:49 +0100
User-agent: Telnet/1.0 [tlh] (PDP11/DEC)

On 27/12/2020 at 19:30, Saint Michael wrote:
Yes, superglobal is great.
Example, from the manual:
" Shared Memory
Shared memory allows one or more processes to communicate via memory that
appears in all of their virtual address spaces. The pages of the virtual
memory is referenced by page table entries in each of the sharing
processes' page tables. It does not have to be at the same address in all
of the processes' virtual memory. As with all System V IPC objects, access
to shared memory areas is controlled via keys and access rights checking.
Once the memory is being shared, there are no checks on how the processes
are using it. They must rely on other mechanisms, for example System V
semaphores, to synchronize access to the memory."

We could allow only strings or more complex objects, but using bash-language
only, an internal mechanism, and also we need to define a semaphore.

Is it doable?

Maybe you should consider that Bash or shell is not the right tool for your needs.

Bash/shell is designed to sequence commands and programs in a very linear way and only deals with character streams.

If you need to manipulate complex objects, work with shared resources, Bash is a very bad choice. If you want to stay with scripting, as you already mentioned using Python; Python is a way better choice for dealing with the features and requirements you describes.


--
Léa Gris




reply via email to

[Prev in Thread] Current Thread [Next in Thread]