-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add .. links to directories? #143
Comments
There seems to be a convention that file .. in every directory is a link to itself
That certainly solves the mystery of how "ls" could possibly show the
current directory. We didn't have the original ls program until now,
and ken couldn't remember how it worked.
I believe .. in the assembler controls what is often called "origin",
the base address at which the code is loaded, so it has a certain
mnemonic value (if different than the current usage).
Files with ".." string (symbol/filename) literals:
phil@p27:~/pdp7-unix/scans$ grep '<\.\.>' *.s
db.s:dotdot: <..>; 040040; 040040; 040040
phil@p27:~/pdp7-unix/scans$ grep 056056 *.s
as.s:o56056: 056056
ds.s: 056056; 040040; 040040; 040040
dsw.s:dd: 056056;040040;040040;040040
ls.s:dd: 056056;040040;040040;040040
pd.s: 056056; 040040; 040040; 040040
stat.s: 056056; 040040; 040040; 040040
In db and as I think they refer to the symbol.
In dsw it's opened and read, looks for a non-empty
entry, and dumps core. if the core file is executed,
it removes that file name?!
In ls, it's the default directory to list
(and if ls is invoked as "list" the output is long,
so I think "list" should be a link to system/ls)
In pd, it's opened and read, and also passed to creat?!?
In stat it's used as the directory to search to get status
on the argument file name.
|
pd seems to remove empty entries from the current directory (pd = purge dir?). I assume creat doesn't change the directory of a file? |
On 10/21/19 1:41 PM, aap wrote:
pd seems to remove empty entries from the current directory (pd =
purge dir?). I assume creat doesn't change the directory of a file?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#143?email_source=notifications&email_token=AAYLSIMLRA2BOOVVOWTM663QPXZVFA5CNFSM4JDBSADKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB3LNZI#issuecomment-544650981>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAYLSIOJ2YHP3NF57X6QLTLQPXZVFANCNFSM4JDBSADA>.
Maybe prune dir?
…--
GPG Fingerprint: 68F4 B3BD 1730 555A 4462 7D45 3EAA 5B6D A982 BAAF
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There seems to be a convention that file .. in every directory is a link to the directory itself (like . in more modern UNIX). I think this should be created by the build script.
The text was updated successfully, but these errors were encountered: