Thread View: comp.os.os2.programmer
4 messages
4 total messages
Started by Marcel LeBlanc
Sun, 12 Apr 1992 05:56
2 simple HPFS questions
Author: Marcel LeBlanc
Date: Sun, 12 Apr 1992 05:56
Date: Sun, 12 Apr 1992 05:56
24 lines
1489 bytes
1489 bytes
Real simple questions for any of you OS/2 users. Does HPFS allow the use of forward slash to delimit directory names in a path? I mean, can I type "here/down/there/file.mine" or do I have to type "here\down\there\file.mine"? Also, do I use an initial "/" (or "\") to indicate that the path is relative to root? Also, are softlinks supported? Across volumes? Are hard links available? That's it! In case you're interested: I don't use MS-DOS, and I've never used Windows. I'm considering OS/2 because it has pre-emptive multitasking at a reasonable price (finally). Until OS/2 2.0, the only supported OS that has the features I've grown accustomed to (pre-emptive, GUI, low cost, ...) was AmigaDOS, which I've used since 1987. An OS/2 machine may now provide a better development environment at a lower cost than an AmigaDOS machine. (now you know! :) Marcel A. LeBlanc -- Electrical Eng. Computer Group, Univ. of Toronto ----------------------------------------------------------------------- leblanc@eecg.toronto.edu else: uunet!utcsri!eecg!leblanc
Re: 2 simple HPFS questions
Author: Robert Cain
Date: Sun, 12 Apr 1992 23:15
Date: Sun, 12 Apr 1992 23:15
11 lines
988 bytes
988 bytes
The direction of slashes depends on the shell you use. The PC shells
traditionally have used backslash. The underlying operating system
doesn't care. The API accepts either with relish and mustard. The
Hamilton C shell which I am not sure is ready for OS/2 accepts forward
for a about a $300 ticket as does the MKS Korn shell for about the same.
The Korn shell is not ready yet for OS/2.
--
Bob Cain rcain@netcom.com 408-358-2007
"There are some strings. They're just not attached."
Victoria Roberts
Re: 2 simple HPFS questions
Author: Michael D Kretzer
Date: Mon, 13 Apr 1992 01:15
Date: Mon, 13 Apr 1992 01:15
19 lines
1659 bytes
1659 bytes
From article <1992Apr12.015629.10185@jarvis.csri.toronto.edu>, by leblanc@eecg.toronto.edu (Marcel LeBlanc): > Does HPFS allow the use of forward slash to delimit directory names in a > path? I mean, can I type "here/down/there/file.mine" or do I have to type > "here\down\there\file.mine"? Also, do I use an initial "/" (or "\") to > indicate that the path is relative to root? No, you cannot use the forward slash to delimit directory names (at least with the command shell/file system shipped with OS/2...it is certainly possible for someone to make a command shell that uses forward slashes, so you will have to type here/down/there/file.mine. Yes, you need to use an initial \ to indicate that the path is relative to the root (that is, unless you happen to already be in the root :) > Also, are softlinks supported? Across volumes? Are hard links available? The OS/2 equivalent of links is shadows in WPS, which are sort of a cross between soft and hard links...it's a slightly different concept... True soft links and true hard links do not exist (at least with the default command shell).
Re: 2 simple HPFS questions
Author: Mark Alexander
Date: Mon, 13 Apr 1992 17:36
Date: Mon, 13 Apr 1992 17:36
19 lines
1286 bytes
1286 bytes
Just to clarify on the "slash" issue: the OS/2 file systems (both DOS
and HPFS) allow you to to use either the forward or backward slash in
pathnames. So you can do this in your program:
DosOpen("/usr/include/stdio.h",...)
However, the standard command shell and other programs provided with
OS/2 treat the forward slash as a switch character, preventing you
from using it in pathnames. But you can use the forward slash in
pathname parameters to other programs that allow it, such as editors
and compilers.
This also applies to DOS, except that in some old versions of DOS,
you could also change the switch character (to '-', for example).
The workaround is to buy an alternate shell (typically a clone of
the unix sh, csh, or ksh). This allows you to use the beloved
forward slash (and makes it twice as hard to use the backslash).
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads