🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.misc
Article #1532

Re: Back To CS Basics. Fuck AI

#1532
From: Janis Papanagnou
Date: Tue, 27 Oct 2026 03:42
279 lines
13081 bytes
On 2026-10-26 08:15, c186282 wrote:
> On 10/26/26 01:04, Janis Papanagnou wrote:
>> On 2026-10-26 04:49, c186282 wrote:
>>> On 10/24/26 05:53, Janis Papanagnou wrote:
>>>> On 2026-10-24 05:59, c186282 wrote:
[...]
>>
>> Not sure why you bring up that statement; nobody said anything
>> like that.
> 
>    My following exposition explains why.
> 
> 
>> My statement about the delayed adoption of Ksh features by Bash
>> was just pointing to the fact that Bash users had to wait before
>> they could use comfortable features that Ksh had already provided
>> for (often many) years.
> 
>    Well, good for them.
> 
>    I'll stick to my philosophic "Functional Convergence"
>    theory here. If shell X does something neat-o then it
>    HAS to be incorporated into all others - some way, some
>    how, neat or not.

I can't see how that would match to what had previously been discussed.

First, I think, we should acknowledge a few facts for better valuation.
Kornshell (ksh88) was the base for the POSIX standard (not "standard").
Bash (and Zsh) support that standard. All these three shells extended
their set of features according to the needs and course of evolution.
Zsh made some fundamental additions in some features to tackle inherent
issues in Bourne shell. Ksh and Bash kept Bourne shell's basic syntax.
Ksh extended (and streamlined some) features staying withing Bourne's
syntactical paragon (as far as sensible and possible).

So it came that Ksh featured, for example, things like ${..//../..},
${..:..:..}, ((...)), <(...), "ksh-patterns", and many more features
that Bash (and Zsh) adopted.

Many more features either weren't (yet) adopted, things like 'float'
arithmetic and more basic math functions in $((...)) and ((...)),
namespaces, type system, discipline functions, and whatnot.

I would have hoped that some features would not have been implemented
in Bash by other names, using other built-in command's options, and
that the rest would have converged better and faster; mind that many
of the newer Ksh features have already been available with Ksh in '93.

> 
>> (It's also a bit unfortunate that Bash implemented some features,
>> and some of them IMO unnecessarily, in a slightly different way,
>> so that you cannot easily switch between the two shells.)
>>
>>>
>>>    Different developers ... everyone had their own idea
>>>    of a 'perfect shell' - but then had to adapt and adapt
>>>    again as the Real Needs became more obvious. Now, most
>>>    WILL do the same things - just slightly different syntax.
>>
>> Where not outright wrong, this is very fuzzy. (I don't think it
>> makes sense to comment on that.)
> 
>    I think it makes good sense. Everybody just HAS to
>    somehow incorporate everyone else's good ideas
>    eventually. Otherwise --> TRASH BIN of history.

Maybe, maybe not. - But what strikes me more is that (shell-)languages
might vanish because of other factors; like official maintenance and
support. I think with the predominance of Bash it will likely persist,
but I'm not that sure with Ksh; after official support from AT&T was
dropped we have to rely on those that took over the task today. Since
the Ksh is less widely used (and the maintainers struggling with the
code base, at least as it seems to me) I'm not too optimistic here.

> [snip Csh talk]
> 
>>>    If I want 'scripting' now, I do it with Python. BASH
>>>    or whatever, maybe it just EVOKES the Python scripts,
>>>    a one or two-liner. Wrote many rather long BASH scripts
>>>    in the past, and while they worked they were, well, just
>>>    TOO messy/cryptic.
>>
>> Yes, I share your valuation of shells being somewhat cryptic and
>> also "messy".
> 
>    VERY messy and OFTEN 'cryptic' (unless very short).

*shrug*

My experience here is that you can do a lot to address that, so the
adverbs you use are relative to one's experience and programming
habits.

>    Just no NEED for such shit anymore.
> 
>>>    Last big BASH script I did was for backing up a bunch
>>>    of on-network drives. Mount-checking (important), calls
>>>    to rsync and openSSH and ftp, local AND 'cloud', all
>>>    with some confirmation checks along the way. SEMI-repeating
>>>    units but each was a bit 'special'.
>>
>> Well, that's what their task mostly is, to "glue" together tools,
>> even if that glue is quite powerful (yet still somewhat "messy").
> 
> 
>    But NOT 'comprehensible' a year or two LATER.

As said, as lot is in the hand of the programmer. (You may be doomed
if you want to work on third-party code. But if your own code is that
bad that you can't "decipher" it after a year don't blame the language
alone.)

> [snip Python talk]
> 
>>>    (ALWAYS pre-encrypt before sending to 'cloud' - I do
>>>    NOT trust the providers one bit. Mine had an extension
>>>    that 'suggested' some kind of ZIP, just to help them
>>>    waste time)
>>
>> I suppose you mean here that you encrypt your backups before you
>> store them in the cloud. That's sensible. (I don't store my files
>> or backups in the cloud in the first place.)
> 
>    I very much mean to encrypt the backups BEFORE you
>    send them to 'cloud'.

So I understood correctly, fine.

I maintain my philosophy to not store any of my sensible data in "the
cloud", neither in plain nor in encrypted form. An encryption that is
safe today isn't guaranteed to be safe tomorrow. Since if my data is
accessible by some third party in the cloud _now_ it might get decoded
later; so that's no option for my.

>    Don't put un-encrypted shit
>    on their sites for a millisecond. Do NOT trust them !
>    AES-xxx is good, though sometimes used Camilla.
> 
>    With several langs/FTP you can put a file on 'cloud'
>    and then set the datetime/ownership to whatever the
>    original had. That's how I did it for a decade+ - works
>    very well. Encrypt, upload, then tweak the specifics.
>    Pirates get NOTHING.
> 
>>>    RE-did it in Python. MUCH shorter and more comprehensible
>>>    and a nice easy CSV config file you could tweak in a text
>>>    editor or spreadsheet. Python made it all BETTER.
>>
>> I'm not too surprised that you say that.
> 
>    Do you disagree ???

(In my previous post I wrote that I'm not the appropriate person to
discuss Python.)

I just said that I understand that because you obviously show some,
umm.., enthusiasm here, concerning that specific language.

(I heard and read about Python, I helped debugging a piece of Python
that my child was trying to run, and I draw the conclusion that it's
not worth [for me] to learn and use that language.)

(It certainly appears a lot more "attractive" than the Unix shells.
But enthusiastic comments often disregard other aspects. Standard
environments and tools, company policies, etc., so in your private
system environment you have more options to choose your personally
preferred tools.)

> 
>>>    Had a 'C' version of that backup pgm earlier. Worked
>>>    fine, but there was a lot of string checking/editing
>>>    involved and 'C' is CLUNKY with string shit.
>>
>> Shell has higher abstractions compared to "C".
> 
>    Slightly - but also CLUNKY and hard to understand
>    a year or two later.

(I already commented on that.)

>    Doing serious string stuff in
>    BASH and several others ... nasty !

I'm curious what specifically you mean; can you give examples?

> 
>    Look, if you're 20-something it MAY be possible to
>    hold all the sense/logic of older shit in your head.
>    Believe me - that CHANGES. Too much shit on a
>    small drive, so to speak.

Well, your way of writing programs may differ from mine.

And (given what you wrote) I'm likely about as old as you are;
and I'm certainly not "remembering" what an older program does.
I'm certainly writing my programs in ways that makes it possible
to resume work at a later stage. This is actually not uncommon;
I've done it in various languages, and problems arose primarily
where I ignored (general, or my own) program quality standards.

I mean I've seen bad code in many languages. And I consider it a
basic programming skill to structure code, name entities sensibly,
and comment code, as necessary.

I understand that the shell with its attributes of being somewhat
cryptic you may more easily write "messy" code, and that it needs
experience and more discipline to write maintainable software.[*]

[*] Back in the 1990's when I gave a couple courses in Kornshell
I explicitly emphasized to handle the Shell not as a "scripting
language" but as a _programming language_. (Hope you understand
what I'm trying to say by that.) To apply all the good practices
that you also apply with other non-"scripting"-languages.

> 
>>>    Python
>>>    stole the FORTRAN string-slicing stuff, good deal !
>>
>> Not sure what you are actually referring here to. (Shell has
>> such things as well. Unless you mean something more fancy when
>> you talk about Python or FORTRAN? My memories on FORTRAN are
>> very faint after 40 years when I had last used it.)
> 
>    Um ... check. Almost all the Python string shit
>    was 'borrowed' from FORTRAN. This is a GOOD thing.
>    SO often you have to slice and dice and squish
>    string stuff together in the real world. It'd
>    better be EASY and OBVIOUS or you're doomed.

(I already asked above about any concrete example you have in mind.)

> [snip]
>>>
>>>    Um ... these days, almost all distros, you do have
>>>    to "intentionally install" KSH or any rivals. BASH
>>>    rules by default.
>>
>> Mine has even ksh93u+m. Some years ago I've got original ksh. Yet
>> more years ago I've seen PD-ksh. All in the standard distribution.
>> As said, I've never had to "intentionally install" a Ksh.
> 
>    Umm ... what IS this 'ksh'-defaulting distro ???

Here we spoke not about "defaulting"[*]; here we spoke about
explicitly "intentionally installed" shells.

Over the time I've used several. Around Y2k I had Suse which had a
PD-ksh. Currently I have Xubuntu which comes with ksh93u+m. But of
course you can also make another shell your personal default-shell;
there's really a lot of shells you can choose from (on Linuxes).

[*] Concerning to your term "'ksh'-defaulting" I refer to another
post in this thread who already expanded on that. (I don't want to
engage with you in some terminology-battle, whether that is your
intention or not.)[**]

[**] Concerning "default" shell we already exchanged this:
|
| 24-10-2026, Janis Papanagnou:
| > 2026-10-24, c186282:
| >>    Note however that MOST distros default to BASH now -
| >
| > Yes, Linux often has Bash as its default.
|
and with a seemingly agreed interpretation of "default" we seem to
have said the same, so I don't think there's more to say.

> [snip]
>> [...]
> 
>    Never got TOO far into ZSH ... but it DOES have a lot
>    of potential. Don't count it out of the picture.

(I certainly don't ignore Zsh, I even mentioned it a couple times.)

> [big snip of digressions]
Janis
Technical Details
Message-ID: <11bp6k0$139ta$2@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <18dee4b6cab427fa$865$2574533$802601b3@news.usenetexpress.com> <POycnb0WPpTmPEz3nZ2dnZfqn_ednZ2d@giganews.com> <87ik32455m.fsf@solcaium.us> <6ad33478$0$28048$426a74cc@news.free.fr> <11b0ms8$iems$8@dont-email.me> <11b0pbe$3pvda$2@dont-email.me> <83se20c7ao.fsf@helmutwaitzmann.news.arcor.de> <11bg381$1bjd2$1@dont-email.me> <RH-dnS_Dp6SSsEH3nZ2dnZfqnPednZ2d@giganews.com> <11bhv61$1bjd2$2@dont-email.me> <YqednV4C15lKUEP3nZ2dnZfqn_adnZ2d@giganews.com> <11bmn1r$36mvl$1@dont-email.me> <pLicnXyiRtu-Y0P3nZ2dnZfqn_GdnZ2d@giganews.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups: comp.os.linux.misc,comp.unix.shell
Subject: Re: Back To CS Basics. Fuck AI
Date: Tue, 27 Oct 2026 04:42:56 +0100
Organization: A noiseless patient Spider
Lines: 279
Message-ID: <11bp6k0$139ta$2@dont-email.me>
References: <18dee4b6cab427fa$865$2574533$802601b3@news.usenetexpress.com>
 <POycnb0WPpTmPEz3nZ2dnZfqn_ednZ2d@giganews.com> <87ik32455m.fsf@solcaium.us>
 <6ad33478$0$28048$426a74cc@news.free.fr> <11b0ms8$iems$8@dont-email.me>
 <11b0pbe$3pvda$2@dont-email.me>
 <83se20c7ao.fsf@helmutwaitzmann.news.arcor.de>
 <11bg381$1bjd2$1@dont-email.me>
 <RH-dnS_Dp6SSsEH3nZ2dnZfqnPednZ2d@giganews.com>
 <11bhv61$1bjd2$2@dont-email.me>
 <YqednV4C15lKUEP3nZ2dnZfqn_adnZ2d@giganews.com>
 <11bmn1r$36mvl$1@dont-email.me>
 <pLicnXyiRtu-Y0P3nZ2dnZfqn_GdnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 27 Oct 2026 03:42:57 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1157034"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19pbQtvFXsIRFKahE1mJe2V"; posting-host="ed16f2b47886a355b23095baaf081d24"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:IkRT+dfazQE7qRpW0bHT7fse0Lg= sha256:whFEzJPPi4PXnHGFCNqMatycBIxP6thTM+egTv/nXtA=
	sha1:SfoptgGWchkPbtSjiDlHVj93llI= sha256:+Br2lfEw1u0K1FjgiBoyqz2kv54ctRYHW0YvrivSE2g=
In-Reply-To: <pLicnXyiRtu-Y0P3nZ2dnZfqn_GdnZ2d@giganews.com>
Content-Language: en-US