Article View: comp.unix.shell
Article #246Re: Back To CS Basics. Fuck AI
From: c186282
Date: Mon, 26 Oct 2026 07:50
Date: Mon, 26 Oct 2026 07:50
50 lines
3731 bytes
3731 bytes
On 10/26/26 01:41, Janis Papanagnou wrote:
> 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 know I will offend The Religious.
Fuck 'em.
Task, BEST solution for YOU. That is The
Standard so far as I'm concerned.
> 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.
I'd write it in PYTHON now :-)
Some OS.System() and maybe Subprocess calls.
Leverage the existing simple/low-level utils
in Linux to your advantage. Run, parse,
mutate, USE.
Done a lot of apps that simply grab output
from those simple Linux utils - then parse
and trim and mix. Why re-invent the wheel ?
You CAN - but WHY ???
Technical Details
Message-ID:
<pLicnX6iRtuom0L3nZ2dnZfqn_EAAAAA@giganews.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.nrbbs.org!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.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> <83se20c7ao.fsf@helmutwaitzmann.news.arcor.de> <11bg381$1bjd2$1@dont-email.me> <RH-dnS_Dp6SSsEH3nZ2dnZfqnPednZ2d@giganews.com> <11bi3f0$2kv20$1@dont-email.me> <YqednVkC15mDTUP3nZ2dnZfqn_YAAAAA@giganews.com> <11bmp6i$36mvl$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!news.nrbbs.org!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 26 Oct 2026 07:50:13 +0000 Date: Mon, 26 Oct 2026 03:50:22 -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> <RH-dnS_Dp6SSsEH3nZ2dnZfqnPednZ2d@giganews.com> <11bi3f0$2kv20$1@dont-email.me> <YqednVkC15mDTUP3nZ2dnZfqn_YAAAAA@giganews.com> <11bmp6i$36mvl$2@dont-email.me> Content-Language: en-US From: c186282 <c186282@nnada.net> Organization: wokiesux In-Reply-To: <11bmp6i$36mvl$2@dont-email.me> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <pLicnX6iRtuom0L3nZ2dnZfqn_EAAAAA@giganews.com> Lines: 50 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-FngPv/NP3MHzuQt5IcRndFfXsJRY+fsoeyo1bjsOlh+F0uevECaD20GZFEG1YBKjivkKcoR5Hf/mIOX!4dMapRW/n5oJew7AiBcxyKD2PpKDItMfffy6HtXrdsOG/uWvQuMjyvkUJJ2xYWM7vKDe4UzXmyc= 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