develooper Front page | perl.perl5.porters | Postings from December 2010

RE: perldelta naming

Thread Previous | Thread Next
From:
Jan Dubois
Date:
December 20, 2010 03:56
Subject:
RE: perldelta naming
Message ID:
01f901cba03c$f7529ee0$e5f7dca0$@activestate.com
On Mon, 20 Dec 2010, Nicholas Clark wrote:
> However, I'm not sure what the "new" portability maxim should be. I'd guess
> 
> * At most one .
> * No more than 39 characters before the dot, and 39 after
> * No distinctions solely on case
> * No filenames starting with -

Also don't use any of these names (regardless of case) before the dot:

  CON, PRN, AUX, NUL,
  COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9,
  LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9

They are all built-in serial device drivers in Windows and cannot
be used for disk-based files.  E.g. even C:\tmp\nul.txt is the
equivalent of /dev/null on Unix.  'AUX' is the offender I've
seen the most in Unix-originated tarballs.

Cheers,
-Jan


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About