Article View: comp.os.linux.misc
Article #1214Re: Back To CS Basics. Fuck AI
From: Anton Antimo
Date: Mon, 19 Oct 2026 20:18
Date: Mon, 19 Oct 2026 20:18
48 lines
3353 bytes
3353 bytes
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
> On 2026-10-17 22:47, Lawrence D’Oliveiro wrote:
>> On 17 Oct 2026 08:40:24 GMT, Stéphane CARPENTIER wrote:
>>
>>> Now, there are almost no more interpreted scripts.
>>
>> Shell scripts are still interpreted. Not only that, but the shell
>> actually seeks through the source file to do a transfer of control.
>> How do I know this? Try making changes to the script while it is
>> running. ;)
>
> I've just done this ("a script change while it's running") [*]
> (with ksh and bash) and there was no change in behavior of the
> running script.
>
> You may want to provide an example what you've actually done
> to come to that conclusion (or reformulate your conclusion).
>
> BTW; I've in other (more complex?) contexts observed that some
> intrusions (tackling the shell program while it runs) do affect
> the running script, but back then I haven't examined the reason
> or circumstances of that effect, or whether it's some effect of
> an interaction with the OS. - So the principle question, what
> exactly happens in what circumstances, is still interesting.
>
> Janis
>
> [*] What I've done was to run the following script "dynchg.sh"
>
> while read ; do
> echo $REPLY
> done
>
> and change it (from another terminal) while it runs by
>
> sed -i '2p' dynchg.sh
>
> I could even remove that file from the directory and it still
> processes data as expected. And there's also no difference if
> that program is explicitly run with the interpreter or running
> it using a shebang interpreter as executable script.
If your remove the script while it's still running, chances are the
interpreter still has it open, so the data is not removed until the file
is closed---that is, you don't more free space until every reader and
writer have closed the file. That's the typical UNIX semantics of open
files. (If I understood the problem here correctly.)
Technical Details
Message-ID:
<871p9lv3z2.fsf@safunu.org>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-mailReferences:
<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>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: Anton Antimo <anton@safunu.org> Newsgroups: comp.os.linux.misc,comp.unix.shell Subject: Re: Back To CS Basics. Fuck AI Followup-To: comp.unix.shell Date: Mon, 19 Oct 2026 17:18:41 -0300 Organization: A noiseless patient Spider Lines: 48 Message-ID: <871p9lv3z2.fsf@safunu.org> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 19 Oct 2026 21:00:05 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2556589"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1890zHH5H2t69nAMoeh0wG0KTiAeKkPEDA="; posting-host="9ed4d0eae9a72940095862b2eb47a45a" Cancel-Lock: sha1:GUsX3ZHr2LeYJET64iGWdjCyqtc= sha1:PUDxpyHelFX2+g+Uj12nx1yvgk0= sha256:NlAtoys9/OTbFtc1jETgK7Wq0WaJ4RhulH/LH8KKkio= sha1:CsFF47qxtvLX/XBaQPUkk6/kKPU= sha256:LCE1x5yjOrBlGg28hzpXd8DxYMvSPx7qSQ3oKwY80Y0=