Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

How many chunks could checkchunk check if checkchunk could check chunks? -- Alan Cox


computers / alt.os.linux.slackware / Re: What is a wedge?

SubjectAuthor
* What is a wedge?Joseph Rosevear
+* Re: What is a wedge?Henrik Carlqvist
|+* Re: What is a wedge?Joseph Rosevear
||`* Re: What is a wedge?Henrik Carlqvist
|| `* Re: What is a wedge?Joseph Rosevear
||  `* Re: What is a wedge?Henrik Carlqvist
||   `- Re: What is a wedge?Joseph Rosevear
|`- Re: What is a wedge?Jim Diamond
`* Re: What is a wedge?David Robley
 `- Re: What is a wedge?Joseph Rosevear

1
What is a wedge?

<tvg55l$nnao$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1739&group=alt.os.linux.slackware#1739

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: Mail@JoesLife.org (Joseph Rosevear)
Newsgroups: alt.os.linux.slackware
Subject: What is a wedge?
Date: Thu, 23 Mar 2023 00:06:14 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <tvg55l$nnao$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 23 Mar 2023 00:06:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d6ff0023007a9356651a6673b0c542f0";
logging-data="777560"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NG2NkPjOC8Q57GxcCYcEx8LB8Nxdf4ro="
User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:P3GZeGBJ9STGFB4bIARQidHqErg=
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAAB3RJTUUH5wISBRox
oH115AAA ABV0RVh0U29mdHdhcmUAWFBh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mOYlO2dF4KslmV/
_gasyKufijg+uRsnSeZkZK//jppieaacrUp5RTIVpDlhYe+kvfXwA0XQi
wFRqkt
yJOtOaFUs7TYtXY9o5W6mksZ6k4dFSstBg4/uyUt1TRSr1mMB7XebFoJJVRe5Py
+So K406qYuYythbq63Udr7xWngwhh62W5Ls9RJ
qB/N+l0XJUnYwWhRQZFmcqHk
_nWml0NjY2J42c PNweJ/N3RqPKNKUn4dwYtRpZp
ym7Z+GuaQ5vjWpJ59qbkzbO/
_y+GfZG1g8r7UtSxzOSlwUEq 8A4FJvXUqx+dG3X
eeu299mTeA1bNOJp3nnd6q1K
_VSm8h6B00Gke5JJl6qvbexqhxcGMsK+H8 mkfSP
N+yYGuvKSv81BuTrh5clCfm+
_KPy8cqNUS9oT39yeJCmqZ+Do2RwKNyf78Fob+fRCVHz
7+M87HeyXrLSGh1ODzg
_9PEnebP5XJj7wszHYaaxLrLPCIt77N3m1EtQ2Jfv3muPPafved3L5
5yJ5fKrYv Yz4P1Ypm+8jxpaGAAAAAElFTkSuQmCC
 by: Joseph Rosevear - Thu, 23 Mar 2023 00:06 UTC

Hello Slackers,

What is a wedge? I'm looking for a term to describe something that I use.

It is code that I wrote, and I'm wondering if it has a category or if it
is something new.

I would like to call it a wedge, because I found online a reference to
code for the Commodore 64 that was called by that name. I believe it was
code that augmented the existing Commodore 64 command set. Anyway, that
is how I mean to use the term, except that I am augmenting the existing
Slackware command set.

I'm sorry if this is drifting into the gray zone of the esoteric. Maybe
it will help if I tell you how this got started:

I was an engineer working for General Dynamics Corporation, Space Systems
Division in San Diego. I was in the Advanced Structures Analysis group,
and I was responsible for creating/maintaining an interface to a
collection of analysis software. This was in about 1986, and we were
using a variety of computers that included networked *nix machines. I
think they were called Apollo Workstations, and they ran a Unix-like
system called Domain.

To make a long story short: I have system on my PC which I call SAM. It
is a descendant of the Structural Analysis Menu that I wrote years
previous. It is a collection of Bash scripts and functions with a few C
language executables thrown in for good measure.

So why does this matter? (Forgive me for taking so long to get to the
point.) As a Slackware Linux user I make extensive use of the command
line. I don't know how *you* manage the awesome complexity of the
command line, but I have found it useful to write a set of commands that
augment the existing Slackware command set. This wouldn't be
particularly interesting except that I did it in a novel way.

The traditional way of managing such a set of commands is to dump them
in /usr/local/bin or some other dir which is in the PATH. But what if
some of the commands actively managed the current environment including
the PATH? Then any dir could contain your new commands.

That is what I have done. I have "gone down the rabbit hole". SAM is
useful. I use it to create interactive collections of executables of all
kinds--mainly bash scripts and functions, but also C language executables
and Python scripts. (But any exectuable could be included.)

So I ask you--what is a wedge? Is SAM a wedge? Is there a better name
for it.

-Joe

Re: What is a wedge?

<tvgt4l$11l32$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1743&group=alt.os.linux.slackware#1743

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: Henrik.Carlqvist@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: What is a wedge?
Date: Thu, 23 Mar 2023 06:55:17 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <tvgt4l$11l32$2@dont-email.me>
References: <tvg55l$nnao$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 23 Mar 2023 06:55:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="45b1d748411b122de0099f39901bf283";
logging-data="1102946"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wjteHNIitg82iRmBZDF/E"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:ihN8UHRgL1XWHqvkGT6Sl2H37Lk=
 by: Henrik Carlqvist - Thu, 23 Mar 2023 06:55 UTC

On Thu, 23 Mar 2023 00:06:14 +0000, Joseph Rosevear wrote:

> But what if some of the commands actively managed the current
> environment including the PATH?

> That is what I have done.

The problem with the environment variables like PATH is that it can be
inherited by child processes, but a child process cannot alter the
environment of a parent process.

To change some environment variable like PATH from your shell, you cannot
call a new process to do that for you. Instead your shell has to change
its environment, possibly by reading the output of some other process or
possibly by running some commands without forking a new process (like
sourcing another script).

There are existing tools to do things like this, one such example is
environment modules available at https://modules.readthedocs.io/en/latest/

These tools usually define some kind of shell alias to alter the
environment variable. The alias will look differently depending upon what
shell is used.

regards Henrik

Re: What is a wedge?

<tvh2ub$12nbi$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1744&group=alt.os.linux.slackware#1744

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: david@me.invalid (David Robley)
Newsgroups: alt.os.linux.slackware
Subject: Re: What is a wedge?
Date: Thu, 23 Mar 2023 19:04:15 +1030
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <tvh2ub$12nbi$1@dont-email.me>
References: <tvg55l$nnao$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 23 Mar 2023 08:34:22 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5eccbf852e02ac5d218a3c1db0f9176d";
logging-data="1138034"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+TS9qpCCyCW4zT9GZx2TNV"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.8.0
Cancel-Lock: sha1:Q/UgUv86gkHVL2788YLfJ2VeA7U=
In-Reply-To: <tvg55l$nnao$1@dont-email.me>
Content-Language: en-US
 by: David Robley - Thu, 23 Mar 2023 08:34 UTC

On 23/03/2023 10:36, Joseph Rosevear wrote:
> Hello Slackers,
>
> What is a wedge? I'm looking for a term to describe something that I use.
>
> It is code that I wrote, and I'm wondering if it has a category or if it
> is something new.
>
> I would like to call it a wedge, because I found online a reference to
> code for the Commodore 64 that was called by that name. I believe it was
> code that augmented the existing Commodore 64 command set. Anyway, that
> is how I mean to use the term, except that I am augmenting the existing
> Slackware command set.

<SNIP>
The C=64 Wedge is described at https://en.wikipedia.org/wiki/DOS_Wedge;
to me it sounds like the old MS-DOS TSR programs like Sidekick
https://en.wikipedia.org/wiki/Borland_Sidekick which would intercept
certain key combinations and perform some action accordingly.

Re: What is a wedge?

<tvim3l$1anj5$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1746&group=alt.os.linux.slackware#1746

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: Mail@JoesLife.org (Joseph Rosevear)
Newsgroups: alt.os.linux.slackware
Subject: Re: What is a wedge?
Date: Thu, 23 Mar 2023 23:07:34 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 57
Message-ID: <tvim3l$1anj5$1@dont-email.me>
References: <tvg55l$nnao$1@dont-email.me> <tvgt4l$11l32$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 23 Mar 2023 23:07:34 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="13567dab3e5152c987a5534a4e16e903";
logging-data="1400421"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18XtKKg9VoWW2r3evkqPG7Ql6dwaG+648w="
User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:SPMFx/JeWyULbwbJsBEw23bzPoE=
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAAB3RJTUUH5wISBRox
oH115AAA ABV0RVh0U29mdHdhcmUAWFBhaW50ID
MuMS40FRQqnAAAB39JREFUWI
_Vl2NuOG1d2BuBv7zrw oFZ3W5IlWbYnA2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Qi
wFRqkt
yJOtOaFUs7TYtXY9o5W6mksZ6k4dFSstBg4/uyUt1TRSr1mMB7XebFoJJVRe5Py
+So K406qYuYythbq63Udr7xWngwhh62W5Ls9RJ
qB/N+l0XJUnYwWhRQZFmcqHk
_nWml0NjY2J42c PNweJ/N3RqPKNKUn4dwYtRpZp
ym7Z+GuaQ5vjWpJ59qbkzbO/
_y+GfZG1g8r7UtSxzOSlwUEq 8A4FJvXUqx+dG3X
eeu299mTeA1bNOJp3nnd6q1K
_VSm8h6B00Gke5JJl6qvbexqhxcGMsK+H8 mkfSP
N+yYGuvKSv81BuTrh5clCfm+
_KPy8cqNUS9oT39yeJCmqZ+Do2RwKNyf78Fob+fRCVHz
7+M87HeyXrLSGh1ODzg
_9PEnebP5XJj7wszHYaaxLrLPCIt77N3m1EtQ2Jfv3muPPafved3L5
5yJ5fKrYv Yz4P1Ypm+8jxpaGAAAAAElFTkSuQmCC
 by: Joseph Rosevear - Thu, 23 Mar 2023 23:07 UTC

On Thu, 23 Mar 2023 06:55:17 -0000 (UTC), Henrik Carlqvist wrote:

> On Thu, 23 Mar 2023 00:06:14 +0000, Joseph Rosevear wrote:
>
>> But what if some of the commands actively managed the current
>> environment including the PATH?
>
>> That is what I have done.
>
> The problem with the environment variables like PATH is that it can be
> inherited by child processes, but a child process cannot alter the
> environment of a parent process.
>
> To change some environment variable like PATH from your shell, you
> cannot call a new process to do that for you. Instead your shell has to
> change its environment, possibly by reading the output of some other
> process or possibly by running some commands without forking a new
> process (like sourcing another script).
>
> There are existing tools to do things like this, one such example is
> environment modules available at
> https://modules.readthedocs.io/en/latest/
>
> These tools usually define some kind of shell alias to alter the
> environment variable. The alias will look differently depending upon
> what shell is used.
>
> regards Henrik

Hello Henrik,

You wrote that "a child process cannot alter the environment of a parent
process". That is true.

But that is not what SAM does. Instead it: pushes the current
environment to a stack for reuse later, changes the PATH in the current
process, makes a corresponding change to the prompt, and runs hash.
Additionally it unsets functions and defines new functions to correspond
to the change in menu.

In this way it simulates the making of a new shell without actually doing
so.

You mentioned sourcing a script. SAM has a special function, dofun. Its
defining script is sourced and then dofun is exported. It becomes, in
this way, the parent of all the other functions.

In response to your question, I spent a few hours (just now) making
another SAM video for my website. It shows the use of SAM to change the
PATH. You can view it here:

https://joeslife.org/projects/RS/pictures/flash/sam_demo2_f

I went to the website you named--thank you for that. It shows that I'm
not alone in my work, after all.

-Joe

Re: What is a wedge?

<tvio3r$1anj5$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1747&group=alt.os.linux.slackware#1747

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: Mail@JoesLife.org (Joseph Rosevear)
Newsgroups: alt.os.linux.slackware
Subject: Re: What is a wedge?
Date: Thu, 23 Mar 2023 23:41:48 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <tvio3r$1anj5$2@dont-email.me>
References: <tvg55l$nnao$1@dont-email.me> <tvh2ub$12nbi$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 23 Mar 2023 23:41:48 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="13567dab3e5152c987a5534a4e16e903";
logging-data="1400421"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19qtPTIPHGy0zg7AdKvdMqPrI/fQ/LQYCs="
User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:xtNKR6mJ4JFha5Sp16VNzzJ2cfY=
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAAB3RJTUUH5wISBRox
oH115AAA ABV0RVh0U29mdHdhcmUAWFBhaW50ID
MuMS40FRQqnAAAB39JREFUWI
_Vl2NuOG1d2Bu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p5RTIVpDlhYe+kvfXwA0XQi
wFRqkt
yJOtOaFUs7TYtXY9o5W6mksZ6k4dFSstBg4/uyUt1TRSr1mMB7XebFoJJVRe5Py
+So K406qYuYythbq63Udr7xWngwhh62W5Ls9RJ
qB/N+l0XJUnYwWhRQZFmcqHk
_nWml0NjY2J42c PNweJ/N3RqPKNKUn4dwYtRpZp
ym7Z+GuaQ5vjWpJ59qbkzbO/
_y+GfZG1g8r7UtSxzOSlwUEq 8A4FJvXUqx+dG3X
eeu299mTeA1bNOJp3nnd6q1K
_VSm8h6B00Gke5JJl6qvbexqhxcGMsK+H8 mkfSP
N+yYGuvKSv81BuTrh5clCfm+
_KPy8cqNUS9oT39yeJCmqZ+Do2RwKNyf78Fob+fRCVHz
7+M87HeyXrLSGh1ODzg
_9PEnebP5XJj7wszHYaaxLrLPCIt77N3m1EtQ2Jfv3muPPafved3L5
5yJ5fKrYv Yz4P1Ypm+8jxpaGAAAAAElFTkSuQmCC
 by: Joseph Rosevear - Thu, 23 Mar 2023 23:41 UTC

On Thu, 23 Mar 2023 19:04:15 +1030, David Robley wrote:

> On 23/03/2023 10:36, Joseph Rosevear wrote:
>> Hello Slackers,
>>
>> What is a wedge? I'm looking for a term to describe something that I
>> use.
>>
>> It is code that I wrote, and I'm wondering if it has a category or if
>> it is something new.
>>
>> I would like to call it a wedge, because I found online a reference to
>> code for the Commodore 64 that was called by that name. I believe it
>> was code that augmented the existing Commodore 64 command set. Anyway,
>> that is how I mean to use the term, except that I am augmenting the
>> existing Slackware command set.
>
> <SNIP>
> The C=64 Wedge is described at https://en.wikipedia.org/wiki/DOS_Wedge;
> to me it sounds like the old MS-DOS TSR programs like Sidekick
> https://en.wikipedia.org/wiki/Borland_Sidekick which would intercept
> certain key combinations and perform some action accordingly.

Thank you David,

Its funny that I had forgotten about the Wikipedia article about the C=64
Wedge. I actually have a link to it in my (RosevearSoftware) website
here:

https://rosevearsoftware.com/products/sam/what/wedge

Thank you for jogging my memory. It seems that two websites is too many
to manage.

And thank you also for mentioning Borland Sidekick. Yes, it does seem to
belong in the same category.

-Joe

Re: What is a wedge?

<tvjgba$1i521$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1748&group=alt.os.linux.slackware#1748

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: Henrik.Carlqvist@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: What is a wedge?
Date: Fri, 24 Mar 2023 06:35:22 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <tvjgba$1i521$1@dont-email.me>
References: <tvg55l$nnao$1@dont-email.me> <tvgt4l$11l32$2@dont-email.me>
<tvim3l$1anj5$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 24 Mar 2023 06:35:22 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b61eb59176277eb05eed64725c4a1e66";
logging-data="1643585"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/UEfgsoLI7qBt3dpQo3JAh"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:qRv8vnRsyNxwlg7m3t3ACq3y038=
 by: Henrik Carlqvist - Fri, 24 Mar 2023 06:35 UTC

On Thu, 23 Mar 2023 23:07:34 +0000, Joseph Rosevear wrote:
> You mentioned sourcing a script. SAM has a special function, dofun.
> Its defining script is sourced and then dofun is exported. It becomes,
> in this way, the parent of all the other functions.

Yes, this works with bash and I think that also other module
implemantations usually also do so with bash. With other shells like tcsh
they might instead use something like alias and eval.
> In response to your question, I spent a few hours (just now) making
> another SAM video for my website. It shows the use of SAM to change the
> PATH. You can view it here:
>
> https://joeslife.org/projects/RS/pictures/flash/sam_demo2_f

Thanks for the video!

> I went to the website you named--thank you for that. It shows that I'm
> not alone in my work, after all.

You are not alone, others have done this since the 90s, but the tcl-based
environment modules that I linked to is the one that has become most used.

There is also another project which solves the problem using lua:

https://www.tacc.utexas.edu/research-development/tacc-projects/lmod

And a seemingly since long abandoned project which solved the problem
using C:

http://www.lysator.liu.se/cmod/

The original tcl implementation might be better described on wikipedia
than on their own web:

https://en.wikipedia.org/wiki/Environment_Modules_(software)

regardss Henrik

Re: What is a wedge?

<tvle1j$1q8o8$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1752&group=alt.os.linux.slackware#1752

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: Mail@JoesLife.org (Joseph Rosevear)
Newsgroups: alt.os.linux.slackware
Subject: Re: What is a wedge?
Date: Sat, 25 Mar 2023 00:08:20 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 52
Message-ID: <tvle1j$1q8o8$3@dont-email.me>
References: <tvg55l$nnao$1@dont-email.me> <tvgt4l$11l32$2@dont-email.me>
<tvim3l$1anj5$1@dont-email.me> <tvjgba$1i521$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 25 Mar 2023 00:08:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d09cdadf878fec85392cfc2551de0f1a";
logging-data="1909512"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ftEh1DG5xmViswOjcTylCX90/1eEgwVA="
User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:2oyP2jTw1dobZNErP4ueZTnhU/4=
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAAB3RJTUUH5wISBRox
oH115AAA ABV0RVh0U29mdHdhcmUAWFBhaW50ID
MuMS40FRQqnAAAB39JREFUWI
_Vl2NuOG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ieaacrUp5RTIVpDlhYe+kvfXwA0XQi
wFRqkt
yJOtOaFUs7TYtXY9o5W6mksZ6k4dFSstBg4/uyUt1TRSr1mMB7XebFoJJVRe5Py
+So K406qYuYythbq63Udr7xWngwhh62W5Ls9RJ
qB/N+l0XJUnYwWhRQZFmcqHk
_nWml0NjY2J42c PNweJ/N3RqPKNKUn4dwYtRpZp
ym7Z+GuaQ5vjWpJ59qbkzbO/
_y+GfZG1g8r7UtSxzOSlwUEq 8A4FJvXUqx+dG3X
eeu299mTeA1bNOJp3nnd6q1K
_VSm8h6B00Gke5JJl6qvbexqhxcGMsK+H8 mkfSP
N+yYGuvKSv81BuTrh5clCfm+
_KPy8cqNUS9oT39yeJCmqZ+Do2RwKNyf78Fob+fRCVHz
7+M87HeyXrLSGh1ODzg
_9PEnebP5XJj7wszHYaaxLrLPCIt77N3m1EtQ2Jfv3muPPafved3L5
5yJ5fKrYv Yz4P1Ypm+8jxpaGAAAAAElFTkSuQmCC
 by: Joseph Rosevear - Sat, 25 Mar 2023 00:08 UTC

On Fri, 24 Mar 2023 06:35:22 -0000 (UTC), Henrik Carlqvist wrote:

[snip]

> Yes, this works with bash and I think that also other module
> implemantations usually also do so with bash. With other shells like
> tcsh they might instead use something like alias and eval.

Sounds interesting.
>
>> In response to your question, I spent a few hours (just now) making
>> another SAM video for my website. It shows the use of SAM to change
>> the PATH. You can view it here:
>>
>> https://joeslife.org/projects/RS/pictures/flash/sam_demo2_f
>
> Thanks for the video!

Sure. Thank you for giving me a little push to make it!
>
>> I went to the website you named--thank you for that. It shows that I'm
>> not alone in my work, after all.
>
> You are not alone, others have done this since the 90s, but the
> tcl-based environment modules that I linked to is the one that has
> become most used.

Wow. I didn't know that.
>
> There is also another project which solves the problem using lua:
>
> https://www.tacc.utexas.edu/research-development/tacc-projects/lmod
>
> And a seemingly since long abandoned project which solved the problem
> using C:
>
> http://www.lysator.liu.se/cmod/
>
> The original tcl implementation might be better described on wikipedia
> than on their own web:
>
> https://en.wikipedia.org/wiki/Environment_Modules_(software)
>
> regardss Henrik

Thank you for the great links. I'll add them to my website. They are
interesting all by themselves, but are especially of interest to me due
to their connection to my SAM.

Could it be that SAM stands for "SAM Ain't Modules"?

-Joe

Re: What is a wedge?

<tvmjkt$256o3$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1759&group=alt.os.linux.slackware#1759

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: Henrik.Carlqvist@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: What is a wedge?
Date: Sat, 25 Mar 2023 10:50:05 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <tvmjkt$256o3$1@dont-email.me>
References: <tvg55l$nnao$1@dont-email.me> <tvgt4l$11l32$2@dont-email.me>
<tvim3l$1anj5$1@dont-email.me> <tvjgba$1i521$1@dont-email.me>
<tvle1j$1q8o8$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 25 Mar 2023 10:50:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a07c0a3f4e71b0164f122a3b6378be1b";
logging-data="2267907"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/jcFExsQ+qLj/hVNPxlrZG"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:TEswK67UUyBomIf/ESJoeY0dTWQ=
 by: Henrik Carlqvist - Sat, 25 Mar 2023 10:50 UTC

On Sat, 25 Mar 2023 00:08:20 +0000, Joseph Rosevear wrote:
> Could it be that SAM stands for "SAM Ain't Modules"?

That might be a good choice. When I hear "SAM" I associate it to a
graphical tool in the CDE environment to administer HP-UX machines:

https://nixdoc.net/man-pages/HP-UX/man1M/sam.1M.html

But today, that SAM is probably forgotten by most people. Maybe some
peopler are still running HP-UX or CDE. Some googling indicates that HP-
UX might have been updated as late as year 2020.

regards Henrik

Re: What is a wedge?

<slrnu1ug64.lm5.JimDiamond@x360.localdomain>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1764&group=alt.os.linux.slackware#1764

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: JimDiamond@jdvb.ca (Jim Diamond)
Newsgroups: alt.os.linux.slackware
Subject: Re: What is a wedge?
Date: Sat, 25 Mar 2023 15:43:13 -0300
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <slrnu1ug64.lm5.JimDiamond@x360.localdomain>
References: <tvg55l$nnao$1@dont-email.me> <tvgt4l$11l32$2@dont-email.me>
Injection-Info: dont-email.me; posting-host="9c06538d1be399b906c78dc6c8794744";
logging-data="2421468"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ctuePfO8z9c8kYNNiyavv"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:JcaM/OFatTcgQGrPvh/PtnTil1c=
 by: Jim Diamond - Sat, 25 Mar 2023 18:43 UTC

On 2023-03-23 at 03:55 ADT, Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> wrote:
> On Thu, 23 Mar 2023 00:06:14 +0000, Joseph Rosevear wrote:

>> But what if some of the commands actively managed the current
>> environment including the PATH?

>> That is what I have done.

> The problem with the environment variables like PATH is that it can be
> inherited by child processes, but a child process cannot alter the
> environment of a parent process.

I saw some horrible hack in some other newsgroup where someone showed how
(sort of, it didn't work for me) to do this using a debugger to attach to
the parent process and update the parent's environment.

The person claimed it worked for him, and, if so, this violates one of my
long-held beliefs about "child can't affect parent's environment".
However, it is a bit of a cheat, since (presumably) if that works, then any
process with perms to attach a debugger to a particular process could
change its environment.

Proof that this actually could work is left as an exercise to the diligent
student. :-)

Jim

Re: What is a wedge?

<tvq73l$2q0cd$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1772&group=alt.os.linux.slackware#1772

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: Mail@JoesLife.org (Joseph Rosevear)
Newsgroups: alt.os.linux.slackware
Subject: Re: What is a wedge?
Date: Sun, 26 Mar 2023 19:40:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <tvq73l$2q0cd$1@dont-email.me>
References: <tvg55l$nnao$1@dont-email.me> <tvgt4l$11l32$2@dont-email.me>
<tvim3l$1anj5$1@dont-email.me> <tvjgba$1i521$1@dont-email.me>
<tvle1j$1q8o8$3@dont-email.me> <tvmjkt$256o3$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 26 Mar 2023 19:40:38 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="92e0419cb20c88f84083fa15700c9fa1";
logging-data="2949517"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18jJkJ/CTuH38gAex6qGnj9Zh122pp7UCY="
User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:WkokvZRJoetLuNPYiYLrUaIwRfg=
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAAB3RJTUUH5wISBRox
oH115AAA ABV0RVh0U29mdHdhcmUAWFBhaW50ID
MuMS40FRQqnAAAB39JREFUWI
_Vl2NuOG1d2BuBv7zrw oFZ3W5IlWbYnA2SAzOQi
mOQd8nS5yUsFCAIMnIkxQRLb
_k8T2WHLr1N1kkyxW1d65qF3sHoS8 YRWLa6/Dv/
71L4Z/+EeCLArlnQWVpNVgIV
_iICJKkM+gdHYwGWZYNBgkZSZKM5VNWe2CWLKlB
IwhajVatVomCvWgv69WojI4G
_kw3oJbkclCdrW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ym7Z+GuaQ5vjWpJ59qbkzbO/
_y+GfZG1g8r7UtSxzOSlwUEq 8A4FJvXUqx+dG3X
eeu299mTeA1bNOJp3nnd6q1K
_VSm8h6B00Gke5JJl6qvbexqhxcGMsK+H8 mkfSP
N+yYGuvKSv81BuTrh5clCfm+
_KPy8cqNUS9oT39yeJCmqZ+Do2RwKNyf78Fob+fRCVHz
7+M87HeyXrLSGh1ODzg
_9PEnebP5XJj7wszHYaaxLrLPCIt77N3m1EtQ2Jfv3muPPafved3L5
5yJ5fKrYv Yz4P1Ypm+8jxpaGAAAAAElFTkSuQmCC
 by: Joseph Rosevear - Sun, 26 Mar 2023 19:40 UTC

On Sat, 25 Mar 2023 10:50:05 -0000 (UTC), Henrik Carlqvist wrote:

> On Sat, 25 Mar 2023 00:08:20 +0000, Joseph Rosevear wrote:
>> Could it be that SAM stands for "SAM Ain't Modules"?
>
> That might be a good choice. When I hear "SAM" I associate it to a
> graphical tool in the CDE environment to administer HP-UX machines:
>
> https://nixdoc.net/man-pages/HP-UX/man1M/sam.1M.html
>
> But today, that SAM is probably forgotten by most people. Maybe some
> peopler are still running HP-UX or CDE. Some googling indicates that HP-
> UX might have been updated as late as year 2020.
>
> regards Henrik

Well, alright. Maybe I'll go with that.

It's not a big deal, as my SAM is not invoked by typing "sam" (or
"SAM"). There are within my SAM two scripts with names of that ilk
("sam" and "sam1"), but I don't believe they are normally in the PATH.

My SAM is not installed as you would normally install an application, so
it is not invoked through the PATH. To install it, you simply put it
somewhere. (Although SAM uses three compiled C language executables, it
has both 32 and 64 bit versions available and chooses between them.) I
like to keep SAM at /mnt/joe_root which is a symlink to partition 1 on a
flashdrive, but the location doesn't matter. To run it, you simply
invoke it:

/mnt/joe_root/begin

I showed this in my demo video that I referred to in an earlier post.
The video was low quality, as I compressed it to make uploading and
downloading faster. You can, however, see a high quality version of the
video on youtube:

https://www.youtube.com/watch?v=5kp9_XSPXIU

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor