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 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.
Janis
> [...]