On 10/26/26 01:41, Janis Papanagnou wrote:
> On 2026-10-26 04:59, c186282 wrote:
>> On 10/24/26 07:06, Nuno Silva wrote:
>>> On 2026-10-24, c186282 wrote: >>>
>>>>    KSH and BASH are "mostly compatible". Minor diffs but >>>>    nothing hard to get around. Anything you can do in KSH >>>>    can be done in BASH.
>>> >>> Now that sounds like something Greg Sullivan of Microsoft would say.
>> >>    You "can do" most anything in COBOL or FORTRAN or 'C' >>    in ANY other lang - just as anything in one shell script >>    you can do in any other. The issue is 'how easily' - and >>    that depends on your particular application.
> > (Be careful; if your argument goes in the direction of "language A > is Turing-complete so you can use it simulating language B, which > makes it effectively the same", then that statement would be of no > practical value!)
I know I will offend The Religious. Fuck 'em. Task, BEST solution for YOU. That is The Standard so far as I'm concerned.
> I want to give you an example code from a little shell tool I wrote: > >   function LINES.set { .kosta.rows=${.sh.value} ; .kosta.update ;} > > (What this does is that whenever the environment variable 'LINES' > changes - e.g. if you pick your mouse and resize the X-window - then > that function gets triggered and the actions defined executed.) > > I'd be interested how you'd implement or emulate that, say, in Bash.
I'd write it in PYTHON now :-) Some OS.System() and maybe Subprocess calls. Leverage the existing simple/low-level utils in Linux to your advantage. Run, parse, mutate, USE. Done a lot of apps that simply grab output from those simple Linux utils - then parse and trim and mix. Why re-invent the wheel ? You CAN - but WHY ???