[Info-vax] Java portability and VMS

Bill Gunshannon billg999 at cs.uofs.edu
Fri Feb 18 17:56:23 EST 2011


In article <4d5eee3d$0$23762$14726298 at news.sunsite.dk>,
	Arne Vajhøj <arne at vajhoej.dk> writes:
> On 18-02-2011 09:03, Bill Gunshannon wrote:
>> In article<4d5e7712$0$23755$14726298 at news.sunsite.dk>,
>> 	Arne Vajhøj<arne at vajhoej.dk>  writes:
>>>
>>>
>>> Opening a file with the name C:\test.txt on Unix does not
>>> work well either.
>>
>> Actually, Unix could care less about those naming conventions.
>> As long as the file exists it will open it just fine.
>>
>>
>> server2# mkdir C:
>> server2# ls -l
>> total 2
>> drwxr-xr-x  2 bill  staff  512 Feb 18 08:58 C:
>> server2# touch C:/dummy.txt
>> server2# ls -l C:
>> total 0
>> -rw-r--r--  1 bill  staff  0 Feb 18 08:58 dummy.txt
>> server2# find .
>> .
>> ./C:
>> ./C:/dummy.txt
> 
> / != \
> 
> But even with the correct slash then the code will not do
> what was intended.

Sigh........

OK, rather than doing what you meant I will do exactly what you said.


server2# echo "This is a file with what appears to be a DOS Filename." >C:\dummy.txt
server2# ls -l C:\dummy.txt
-rw-r--r--  1 bill  staff  55 Feb 18 17:52 C:dummy.txt
server2# cat C:\dummy.txt
This is a file with what appears to be a DOS Filename.
server2#

The backwards slash really has no particular meaning to the unix shell
so the same problem can be done both ways.  But, like I said, this works
too, but isn't what was intended.

bill

-- 
Bill Gunshannon          |  de-moc-ra-cy (di mok' ra see) n.  Three wolves
billg999 at cs.scranton.edu |  and a sheep voting on what's for dinner.
University of Scranton   |
Scranton, Pennsylvania   |         #include <std.disclaimer.h>   



More information about the Info-vax mailing list