🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Back To CS Basics. Fuck AI

#1440
From: c186282
Date: Sat, 24 Oct 2026 03:59
49 lines
3408 bytes
On 10/23/26 12:50, Janis Papanagnou wrote:
> 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.)


   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.

   There are MANY shells, of course. CSH and ZSH are 'more
   different' for example and it'd be a more complicated
   translation. Not impossible, just more work.

   If KSH works for you then stick with it. Note however
   that MOST distros default to BASH now - so if you plan
   to 'distribute' your work it'd be better to move your
   stuff over to BASH. Most distros, users would have to
   intentionally install KSH and scripts would need a
   shebang at the top to specify which shell to use.
   (good practice, always add the shebang)
Technical Details
Message-ID: <RH-dnS_Dp6SSsEH3nZ2dnZfqnPednZ2d@giganews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder9.news.weretis.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!local-2.nntp.ord.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!news.giganews.com.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>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder9.news.weretis.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!local-2.nntp.ord.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 24 Oct 2026 03:59:11 +0000
Date: Fri, 23 Oct 2026 23:59:17 -0400
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Back To CS Basics. Fuck AI
Newsgroups: comp.os.linux.misc,comp.unix.shell
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>
Content-Language: en-US
From: c186282 <c186282@nnada.net>
Organization: wokiesux
In-Reply-To: <11bg381$1bjd2$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Message-ID: <RH-dnS_Dp6SSsEH3nZ2dnZfqnPednZ2d@giganews.com>
Lines: 49
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-k9dm09iGujzo5Q3mVvX6q4uFMFTkVLEdQcDA6XhhFyPQZx3+ipp0agbPxO+q8N08conpN2Wir9S9H9z!Zwj4XEaNIotU1xZ2AplP4e98DsuDqJmbja+Zc2+pRGH8dTp3n9h5szqALyi8c751zPJ/D2G6+rU=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40