From: charles.unix.pro@gmail.com (Charles Anthony)
Subject: [TUHS] Dash options
Date: Wed, 29 Nov 2017 12:29:42 -0800 [thread overview]
Message-ID: <CANV78LTLK5ybLfMuCL65-QXt7k2abDRLf+fM8aMSTnLhc-vgJQ@mail.gmail.com> (raw)
In-Reply-To: <20171129140326.6298D18C096@mercury.lcs.mit.edu>
On Wed, Nov 29, 2017 at 6:03 AM, Noel Chiappa <jnc at mercury.lcs.mit.edu>
wrote:
> > From: Charles Anthony
>
> > Entry points are usually defined as "foo$bar", where "foo" is the
> > segment name, and "bar" an entry point in the segment symbol table. I
> > believe that the degerate case of "foo$" is treated as "foo$foo" by
> the
> > shell.
>
> So I'm curious about how this, and additional names, interact. (For those
> who
> aren't familiar with Multics, a segment [file, sort of] can have multiple
> names. This is sort of like 'hard links' in Unix, except that in Multics
> one
> name, the "primary name" is very slightly preeminent. See here:
>
> http://web.mit.edu/multics-history/source/Multics/mdds/mdd006.compout
>
> page 2-5, for more, if you're interested.)
>
>
They are also different in an important way: the additional name is part of
the segment, not of the directory. If the segment is moved to a different
directory, the names move with it.
> So if I have a segment with primary name 'foo', and additional names 'bar'
> and
> 'zap', and I say 'zap' to the Multics shell, I assume it does a call to
> zap$zap, which finds the segment with the primary name 'foo', and calls the
> 'zap' entry therein?
>
> Turns out that it does (I thought it didn't, but I checked first).
Multics has a search path mechanism (like $PATH); the directories listed
therein are searched for a matching segment name or additional name.
For the hello$world example, the command "an hello world" would add the
name "world" to the "hello" segment and then the command "world" would
become equivalent to "hello$world".
For the case of "bound" segments, (several object segments linked together
in a single segment, and the intersegment links "pre-snapped", the binder
control file (similar to ld's ifile) would list the entry points that were
to be made externally visible, and the binder automatically adds those
names to the the bound segment:
Eg, teco lines in "bound_teco"; the "ls" command sees that "teco" is a name
of the "bound_teco" segment.
ls >tools>teco
Segments = 1, Lengths = 9.
re 9 bound_teco_
teco_ssd
teco
teco_get_macro_
teco_error
teco_error_mode
get_temp_seg_
assign_temp_seg_id_
release_temp_seg_
release_temp_segs_all_
get_seg_ptr_
get_seg_ptr_arg_
get_seg_ptr_full_path_
get_seg_ptr_search_
release_seg_ptr_
>
> > Multics rulez; UNIX droolz
>
> Dude, you clearly have Very Large brass ones to send that to this list! :-)
>
>
Thank you (I think). Should be a nice change from the Microsoft fan boys,
tho.
-- Charles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20171129/891bef77/attachment.html>
next prev parent reply other threads:[~2017-11-29 20:29 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-29 14:03 Noel Chiappa
2017-11-29 20:29 ` Charles Anthony [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-11-29 1:23 Doug McIlroy
2017-11-29 1:37 ` George Michaelson
2017-11-29 2:22 ` Charles Anthony
[not found] <mailman.376.1511899437.9955.tuhs@minnie.tuhs.org>
2017-11-28 21:30 ` Paul Ruizendaal
2017-11-28 13:19 Noel Chiappa
2017-11-28 18:20 ` Clem Cole
2017-11-28 21:56 ` Dave Horsfall
2017-11-28 5:51 Jon Steinhart
2017-11-28 6:05 ` Dave Horsfall
2017-11-28 6:49 ` Andrew Warkentin
2017-11-28 11:18 ` Ralph Corderoy
2017-11-28 11:49 ` Michael Kjörling
2017-11-28 12:46 ` Ralph Corderoy
2017-11-28 18:01 ` Lawrence Stewart
2017-11-28 19:36 ` Paul Winalski
2017-11-28 20:03 ` Clem Cole
2017-11-28 6:28 ` Greg 'groggy' Lehey
2017-11-29 19:16 ` Steffen Nurpmeso
[not found] ` <20171204054651.GA17671@eureka.lemis.com>
[not found] ` <20171204215701.l9Pvr%steffen@sdaoden.eu>
2017-12-05 13:22 ` Steffen Nurpmeso
2017-12-07 5:15 ` Greg 'groggy' Lehey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CANV78LTLK5ybLfMuCL65-QXt7k2abDRLf+fM8aMSTnLhc-vgJQ@mail.gmail.com \
--to=charles.unix.pro@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).