Apple ProDos help needed [message #268649] |
Tue, 12 November 1985 13:07 |
rupp
Messages: 13 Registered: March 1985
Karma: 0
|
Junior Member |
|
|
Article-I.D.: tetra.109
Posted: Tue Nov 12 13:07:45 1985
Date-Received: Fri, 15-Nov-85 04:18:44 EST
Distribution: net
Organization: Naval Ocean Systems Center, San Diego
Lines: 12
I use UNIX (4.2 BSD) daily in my work, and am familiarizing myself with
MS-DOS. Therefore, when I started to examine ProDos, I expected a similar
way of changing directories. But the book I am using, by a guy named
Campbell, does not seem to explain how you get from one directory to another.
Paths, yes, but I see no "change directory" command, such as cd in UNIX.
Am I totally misreading this fellow's book, or is there no way to move from
one directory to another in ProDos? I feel somewhat foolish asking this
question, but I simply cannot find the information I am looking for in this
particular book.
Thanks
|
|
|
Re: Apple ProDos help needed [message #268651 is a reply to message #268649] |
Thu, 14 November 1985 15:16 |
paulb
Messages: 11 Registered: May 2013
Karma: 0
|
Junior Member |
|
|
Article-I.D.: ttidcc.19
Posted: Thu Nov 14 15:16:34 1985
Date-Received: Fri, 15-Nov-85 20:37:34 EST
References: <109@tetra.UUCP>
Reply-To: paulb@ttidcc.UUCP (Paul Blumstein)
Distribution: net
Organization: Transaction Technology, Inc. (CitiCorp), Santa Monica
Lines: 24
Summary:
In article <109@tetra.UUCP> rupp@tetra.UUCP (William L. Rupp) writes:
> I use UNIX (4.2 BSD) daily in my work, and am familiarizing myself with
> MS-DOS. Therefore, when I started to examine ProDos, I expected a similar
> way of changing directories. But the book I am using, by a guy named
> Campbell, does not seem to explain how you get from one directory to another.
> Paths, yes, but I see no "change directory" command, such as cd in UNIX.
>
> Am I totally misreading this fellow's book, or is there no way to move from
> one directory to another in ProDos? I feel somewhat foolish asking this
> question, but I simply cannot find the information I am looking for in this
> particular book.
>
> Thanks
Use SET PREFIX. If you think about it, it effectively does the same
thing.
--
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Paul Blumstein "Violence is the last refuge of the
Citicorp/TTI incompetent" -- S. Hardin
3100 Ocean Park Blvd. from Issac Asimov's Foundation
Santa Monica, CA 90405
(213) 450-9111
{philabs,randvax,trwrb,vortex}!ttidca!paulb
|
|
|
Re: Apple ProDos help needed [message #268652 is a reply to message #268649] |
Thu, 14 November 1985 07:33 |
aer
Messages: 41 Registered: September 1985
Karma: 0
|
Member |
|
|
Article-I.D.: alice.4558
Posted: Thu Nov 14 07:33:06 1985
Date-Received: Sat, 16-Nov-85 01:09:24 EST
References: <109@tetra.UUCP>
Organization: Bell Labs, Murray Hill
Lines: 7
To change directory prefices in ProDOS,
type PREFIX .
--
##########################################################################
#D. Rosenberg
#..ihnp4!alice!aer "These are My Opinions- and mine alone."
|
|
|
Re: Apple ProDos help needed [message #268653 is a reply to message #268649] |
Fri, 15 November 1985 05:57 |
gwyn@brl-tgr.ARPA (Do
Messages: 63 Registered: May 2013
Karma: 0
|
Member |
|
|
Article-I.D.: brl-tgr.3249
Posted: Fri Nov 15 05:57:23 1985
Date-Received: Sat, 16-Nov-85 03:46:24 EST
References: <109@tetra.UUCP>
Distribution: net
Organization: Ballistic Research Lab
Lines: 25
> I use UNIX (4.2 BSD) daily in my work, and am familiarizing myself with
> MS-DOS. Therefore, when I started to examine ProDos, I expected a similar
> way of changing directories. But the book I am using, by a guy named
> Campbell, does not seem to explain how you get from one directory to another.
> Paths, yes, but I see no "change directory" command, such as cd in UNIX.
ProDos does not maintain a concept of "current working directory",
but instead maintains a "current prefix" which is prepended to
filenames. This accomplishes much the same thing. The Basic
Language Interpreter supports a "PREFIX" command, which reports
the current prefix if no arguments are used (UNIX "pwd"), or sets
the prefix to the user-specified argument when present. There are
of course Machine Language Interpreter system calls for this.
Unfortunately, there appears to be no built-in equivalent of the
UNIX "cd .." and definitely no concept of a $HOME directory (UNIX
"cd" with no arguments). Fortunately, if the new prefix being set
does not start with /, the existing prefix is prepended to it, so
there is equivalent behavior to the UNIX "cd subdir" (relative path).
If one were to implement his own shell, it would be easy to
implement "cd .." by getting the current prefix, then trimming off
the last piece of it and setting the new prefix to that. This is
similar to what I did in the BRL SVR2 Bourne shell to circumvent
symbolic links to directories. I rather like the prefix approach,
except for its lack of ".." support.
|
|
|
Re: Apple ProDos help needed [message #268654 is a reply to message #268649] |
Thu, 14 November 1985 17:58 |
jbs
Messages: 5 Registered: November 1985
Karma: 0
|
Junior Member |
|
|
Article-I.D.: mit-eddi.442
Posted: Thu Nov 14 17:58:47 1985
Date-Received: Sat, 16-Nov-85 07:34:15 EST
References: <109@tetra.UUCP>
Reply-To: jbs@mit-eddie.UUCP (Jeff Siegal)
Distribution: net
Organization: MIT, Cambridge, MA
Lines: 7
The command to change your default directory in ProDos is
PREFIX
Perhaps he MISWROTE the book rather than you misreading it :-)
Jeff Siegal - MIT EECS (jbs@mit-eddie)
|
|
|
Re: Apple ProDos help needed [message #268658 is a reply to message #268649] |
Fri, 15 November 1985 15:09 |
|
Originally posted by: ldr292@uiucuxa.CSO.UIUC.EDU
Article-I.D.: uiucuxa.9800021
Posted: Fri Nov 15 15:09:00 1985
Date-Received: Sat, 16-Nov-85 21:07:35 EST
References: <109@tetra.UUCP>
Lines: 9
Nf-ID: #R:tetra.UUCP:109:uiucuxa:9800021:000:390
Nf-From: uiucuxa.CSO.UIUC.EDU!ldr292 Nov 15 14:09:00 1985
I am not familiar with the book of which you speak, but there is a command in ProDOS similiar (but not quite like cd in UNIX). The command is 'path ='.
The syntax is 'path ='. where pathname is the logical pathname of the directory you wish to set. (ie. system/wpfiles)
Hope that helped.
Leonard Rosenthol
@uiucuxa/ldr292
|
|
|
Re: Apple ProDos help needed [message #268679 is a reply to message #268649] |
Sun, 24 November 1985 01:04 |
|
Originally posted by: cs2551ap@unmc.UUCP
Article-I.D.: unmc.545
Posted: Sun Nov 24 01:04:52 1985
Date-Received: Mon, 25-Nov-85 07:51:56 EST
References: <109@tetra.UUCP> <>
Reply-To: cs2551ap@unmc.UUCP (Tom Brown)
Distribution: net
Organization: Univ. of New Mexico, Albuquerque
Lines: 14
In article <> ldr292@uiucuxa.CSO.UIUC.EDU writes:
>
> I am not familiar with the book of which you speak, but there is a command in ProDOS similiar (but not quite like cd in UNIX). The command is 'path ='.
> The syntax is 'path ='. where pathname is the logical pathname of the directory you wish to set. (ie. system/wpfiles)
> Hope that helped.
>
> Leonard Rosenthol
> @uiucuxa/ldr292
Never heard of that command, but you might want to try ]PREFIX
instead. ^
Tom Brown |
|
THAT is a prompt! :-)
|
|
|