rupp@tetra.UUCP (William L. Rupp) (11/12/85)
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
aer@alice.UucP (D. Rosenberg) (11/14/85)
To change directory prefices in ProDOS, type PREFIX <pathname>. -- ########################################################################## #D. Rosenberg #..ihnp4!alice!aer "These are My Opinions- and mine alone."
paulb@ttidcc.UUCP (Paul Blumstein) (11/14/85)
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
jbs@mit-eddie.UUCP (Jeff Siegal) (11/15/85)
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)
gwyn@brl-tgr.ARPA (Doug Gwyn <gwyn>) (11/15/85)
> 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.
ldr292@uiucuxa.CSO.UIUC.EDU (11/15/85)
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 ='<pathname>. where pathname is the logical pathname of the directory you wish to set. (ie. system/wpfiles) Hope that helped. Leonard Rosenthol @uiucuxa/ldr292
cs2551ap@unmc.UUCP (11/24/85)
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 ='<pathname>. 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 <PATHNAME> instead. ^ Tom Brown | | THAT is a prompt! :-)