Historically it was typical to have the specific tasks separated...
Like, "echo", "ls", ..., don't actually do enough to justify the
overhead of spawning a new process.
...where newer shells typically have made sensible decisions and built
in functions like 'echo' and 'printf', and added syntactic constructs,
like '[[...]]' that made the former external '[' command (meanwhile
often also built-in) unnecessary.
Concerning 'ls', I don't think that this is primitive enough to become
a built-in; inspect the many options you typically get with it, even
if you only restrict to the POSIX subset. (And for shell scripting you
often don't even need 'ls' since filenames are typically obtained by
other ways and can be obtained even by wildcards in any context.)
(What I'm actually missing is a shell built-in 'stat' command; I think
that would be sensible. But that's just my personal opinion.)
On 24/07/2026 8:34 PM, Janis Papanagnou wrote:
Historically it was typical to have the specific tasks separated...
Like, "echo", "ls", ..., don't actually do enough to justify the
overhead of spawning a new process.
...where newer shells typically have made sensible decisions and built
in functions like 'echo' and 'printf', and added syntactic constructs,
like '[[...]]' that made the former external '[' command (meanwhile
often also built-in) unnecessary.
Concerning 'ls', I don't think that this is primitive enough to become
a built-in; inspect the many options you typically get with it, even
if you only restrict to the POSIX subset. (And for shell scripting you
often don't even need 'ls' since filenames are typically obtained by
other ways and can be obtained even by wildcards in any context.)
(What I'm actually missing is a shell built-in 'stat' command; I think
that would be sensible. But that's just my personal opinion.)
This is trivial, for some value of trivial, by making a Zsh extension.
I've previously written one in C -- of course -- but now the code is
lost.ÿ What I did for fun was to create a binding for OpenGL.ÿ It was
enough to show a triangle on a screen.ÿ Today, I'd probably do the same
via SDL3, or even SDL2, and OpenGL rather than GLUT.
And by now, it seems I snipped the part where you mentioned ksh.ÿ Does
ksh also have a mechanism for dynamic modules?
This is trivial, for some value of trivial, by making a Zsh
extension.
On Sat, 25 Jul 2026 01:03:33 +0800, Johann 'Myrkraverk' Oskarsson wrote:
This is trivial, for some value of trivial, by making a Zsh
extension.
Many apps that allow addons/plugins are moving away from allowing
third-party code to execute within their process context. Instead, the addon/plugin executes in its own process, with communication with the
parent app handled via an IPC protocol buried within an API library of
some sort.
Examples: GIMP, Inkscape.
A shell could provide something similar -- if it wants third-party
code messing with its internal context. Otherwise I would avoid it.
On the graphics front, I've moved away from GIMP and Inkscape, and
now use CorelDRAW and Photo-Paint.
On Sat, 25 Jul 2026 18:07:02 +0800, Johann 'Myrkraverk' Oskarsson wrote:
On the graphics front, I've moved away from GIMP and Inkscape, and
now use CorelDRAW and Photo-Paint.
You enjoy getting locked into rentware, do you?
I just use 2021, which doesn't have any of the AI features; or none
that I noticed.
Did you not notice that before the checkout, you can choose the
/CorelDRAW Graphics Suite 2026/ as a one time purchase for $859?
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 5 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 498677:10:05 |
| Calls: | 212 |
| Calls today: | 3 |
| Files: | 910 |
| D/L today: |
31 files (22,593K bytes) |
| Messages: | 69,826 |