🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #227

Re: Back To CS Basics. Fuck AI

#227
From: Janis Papanagnou
Date: Fri, 23 Oct 2026 16:50
35 lines
2512 bytes
On 2026-10-21 00:54, Helmut Waitzmann wrote:
> Janis Papanagnou <janis_papanagnou+ng@hotmail.com>:
>> On 2026-10-17 22:47, Lawrence D’Oliveiro wrote:
>> I've just done this ("a script change while it's running") [*]
>>
>> [*] 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
>>
> 
> As the "-i" option is not defined by the POSIX standard but by GNU sed, 
> I assume that your example uses GNU sed.

Yes. (I've just used '-i' for simplicity.)

A better example would have been to issue (from another shell window)
the command

    echo "echo END" >> dynchg.sh

and we then see that after terminating the above loop the "END" will
be printed.

(I'm testing with ksh but suppose that in bash it would be similar.)

Janis

> [...]
Technical Details
Message-ID: <11bg381$1bjd2$1@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>

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: Fri, 23 Oct 2026 18:50:09 +0200
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <11bg381$1bjd2$1@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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 23 Oct 2026 16:50:10 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1428898"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX193ygKhISamLlYKdUAGG0cB"; posting-host="c5da0adb83de08f11e0b2d7f377eacf6"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:vEwSgmD93aZu/MgaDtJwtoP5bYQ= sha256:0jlEcE6YYSjG3Kr77T8YGSwTz4OuSzzEA3EUEJMORN4=
	sha1:qBfPcOhjVVFG6VfBzdAg9BulZyk= sha256:NU3qohl+AlvPGCGB1eKh0dsVD4cUv6jJjD7uMHR113Q=
Content-Language: en-US
In-Reply-To: <83se20c7ao.fsf@helmutwaitzmann.news.arcor.de>