portability and filenames without extension in TeX



Hello!

This posting is about creating text-files with TeX whose
filenames have no extension.

[ Why might one need this?
E.g., when submitting a new package to CTAN, you are asked to
submit a text-file named "README". ]

Usually if no filename-extension is supplied to the filename-
argument of the \openout-primitive, TeX automatically attaches
the extension ".tex".

I found out that with MiKTeX 2.4 under Win95B (OSR2) you can
prevent this by supplying a trailing dot but no extension. On
that platform the following code delivers a file whose name is
"MYFILE" - without extension. (I checked the resulting file
and FAT-entries with a Hex/RAW-Disk-Editor.)

\newwrite\mywrite
\immediate\openout\mywrite MYFILE.\relax
\immediate\write\mywrite{Some text}
\immediate\closeout\mywrite
\bye

Questions: Is this a "portable" method?
What will happen on other platforms?
(Are there platforms/file-systems where filenames
without extensions are impossible?)
Can you assume that supplying just a trailing dot
instead of a complete filename-extension works out on
all platforms for automatically generating files with
"extensionless" filenames by means of some docstrip-
based ins/dtx-script?
If not: What other methods (besides manual or
automatized post-processing/renaming of the files in
question) would you suggest instead?

Sincerely

Ulrich

.



Relevant Pages

  • Re: File extension changes when downloading .tar.Z file
    ... Explorer displays uppercase 8.3 DOS-style filenames ... and turn on the Allow uppercase filenames option. ... They have the file extension '.tar.Z'. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: WSS & WMSDE
    ... Search for filenames and extension". ... > depents on the number of documents your are going to put on the site... ... > You could make file name searching yourself by looping trough all the ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Can one tell Explorer to accept filesnames containing only an extension?
    ... that it does not accept filenames that only have an extension. ... I would say it is a poor crossplatform design if You have to rename ... Can't one tell Explorer to just shut up and accept such filenames, ...
    (microsoft.public.windowsxp.customize)
  • Re: newb question: file searching
    ... change the extension to .png then a file in a hidden directory (one the ... for dirpath, dirnames, filenames in os.walk): ... extension in the script's path and all sub-directories. ...
    (comp.lang.python)
  • create file without extension in filename
    ... I'd like to write an external file from within TeX whose name has ... no extension. ... filename, usually the extension `.tex' is added automatically. ... "extensionless" file on all platforms? ...
    (comp.text.tex)