[Info-vax] Java portability and VMS
glen herrmannsfeldt
gah at ugcs.caltech.edu
Fri Feb 18 18:55:52 EST 2011
Bill Gunshannon <billg999 at cs.uofs.edu> wrote:
(snip)
>> 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.
Backslash does have meaning to the shell. I tested mine from
a Fortran OPEN statement, which doesn't process backslashes.
(However, my non-standard Fortran compiler does process C escape
sequences, so I had to double the backslash there.)
Reminds me of many years ago searching TeX files for double backslashes.
grep \\\\\\\\ *.tex
-- glen
More information about the Info-vax
mailing list