It's really that awful, as OPEN tries the device you told it, then, if no success, uses DATAD$ or somewhat others, DEV or such.

To be really successfull, you should set the SV_DATAD to "", keep the value then try to open the device. This is the only way to see, if *that* device is not present.

----- Original Message ----- From: "Marcel Kilgus" <ql-us...@mail.kilgus.net>
To: <ql-us...@q-v-d.com>
Sent: Tuesday, June 14, 2016 7:57 PM
Subject: Re: [Ql-Users] A feature or a bug?


François Van Emelen wrote:
So, this seems to be a feature... a very dangerous one : replacing DIR
f$ in line 30 with DELETE f$ would wipe all directories and files on
that device.

That would actually be a somewhat cool feature, but DELETE is not as
cool, so nothing will happen. Try it :) WDEL is a little bit more
dangerous, but it still asks nicely and like DELETE it will also fail
on directories.

Thing is this: FTEST = OPEN:CLOSE. OPEN can be used without a
parameter, in which case DATAD$ will be used. The same is therefore
true for FTEST. It's actually been this way since the release of TK2
which has been how long ago, 30 years or so?

All the best, Marcel

_______________________________________________
QL-Users Mailing List

Reply via email to