Re: [cc65] Filenames for POSIX functins on CBM targets

From: <silverdr1wfmh.org.pl>
Date: 2012-08-09 22:53:15
On 2012-08-09, at 22:44, Groepaz wrote:

> On Thursday 09 August 2012, Spiro Trikaliotis wrote:
>> The point here is: The drive number is something that does not have to
>> be handled specifically if you just keep the "0:" or "1:" syntax. Thus,
>> there is absolutely no need to disallow that one, regardless of if you
>> want the approach of an "absolute path" or not - i.e., "/8/0:abc" would
>> be fine.
> 
> one major problem with this though IMHO: pretty much any character is valid in 
> a filename (eg the forward slash), requiring a somewhat non trivial parser. 
> ("8/9/10" is a valid filename)

Yup - that was my concern too. In unixalikes slash is always a delimiter unless escaped. Here this would have to be probably a requirement to specify the device number. In such case only the first "/8/" would have to be parsed away. But it has its drawbacks too. Like no "default" device..

-- 
SD!

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Aug 9 22:53:26 2012

This archive was generated by hypermail 2.1.8 : 2012-08-09 22:53:30 CEST