*BSD News Article 68238


Return to BSD News archive

#! rnews 2270 bsd
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.mel.connect.com.au!news.mira.net.au!vic.news.telstra.net!act.news.telstra.net!imci3!imci4!newsfeed.internetmci.com!in1.uu.net!news.artisoft.com!usenet
From: Terry Lambert <terry@lambert.org>
Newsgroups: comp.unix.misc,comp.unix.bsd.misc
Subject: Re: How to delete files within C programs
Date: Fri, 10 May 1996 19:28:46 -0700
Organization: Me
Lines: 29
Message-ID: <3193FB5E.33FF33BA@lambert.org>
References: <Oum-El-Kheir.Benkahla-3004961724540001@mac-ugm-3.imag.fr>
	  <4m5p3k$3nq@dfw-ixnews2.ix.netcom.com> <4m7sr3$rf9@news.rhrz.uni-bonn.de>
	  <DqtDDy.Hrq@metapro.dialix.oz.au> <4md46o$1bk@news.rhrz.uni-bonn.de>
	  <4mo0pd$268@innocence.interface-business.de>
	  <4moci3$80u@news.rhrz.uni-bonn.de>
	  <4mpo0f$57r@innocence.interface-business.de>
	  <4mq4o3$qkh@news.rhrz.uni-bonn.de> <kaleb.831665036@exalt> <4mv762$fl7@innocence.interface-business.de>
NNTP-Posting-Host: hecate.artisoft.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.01 (X11; I; Linux 1.1.76 i486)
Xref: euryale.cc.adfa.oz.au comp.unix.misc:22641 comp.unix.bsd.misc:1001

J Wunsch wrote:
] 
] kaleb@x.org (Kaleb KEITHLEY) wrote:
] 
] > Not to be supportive of MS-DOS, but you're mistaken about
] > the pathname separator. At the system call level DOS allows
] > the use of either '/' or '\' as path separators. It's only
] > the shells, COMMAND.COM in DOS and CMD.EXE in NT that require
] > you to use '\'.
] 
] I know. :)  In DR-DOS, you could even change the ``switch character''
] to `-', and then command.com was able to use slashes as pathname
] separators as well.

DOS 2.11 allowed "switchchar=-" in the config.sys.

In susbsequent versions of DOS, ther is an undocumented INT 21
call which will set the switch character (documented in most
"undocumented DOS" type books worthy of the name).

If you set it away from '/', then '/' becomes usable as a path
seperator.

					Regards,
                                        Terry Lambert
                                        terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.