Upgrade to PathTools 3.11
[p5sagit/p5-mst-13.2.git] / ext / Cwd / Changes
1 Revision history for Perl distribution PathTools.
2
3 3.11  Sat Aug 27 20:12:55 CDT 2005
4
5  - Fixed a couple of typos in the documentation for
6    File::Spec::Mac. [Piotr Fusik]
7
8 3.10  Thu Aug 25 22:24:57 CDT 2005
9
10  - eliminate_macros() and fixpath() in File::Spec::VMS are now
11    deprecated, since they are MakeMaker-specific and now live inside
12    MakeMaker. [Michael Schwern]
13
14  - canonpath() on Win32 now collapses foo/.. (or foo\..) sections
15    correctly, rather than doing the "misguided" work it was previously
16    doing.  Note that canonpath() on Unix still does NOT collapse these
17    sections, as doing so would be incorrect.  [Michael Schwern]
18
19 3.09  Tue Jun 14 20:36:50 CDT 2005
20
21  - Added some block delimiters (brackets) in the Perl_getcwd_sv() XS
22    function, which were necessary to separate the variable
23    declarations from the statements when HAS_GETCWD is not
24    defined. [Yves]
25
26  - Apparently the _NT_cwd() routine is never defined externally like I
27    thought it was, so I simplified the code around it.
28
29  - When cwd() is implemented using the _backtick_pwd() function, it
30    sometimes could create accidental undef entries in %ENV under perl
31    5.6, because local($hash{key}) is somewhat broken.  This is now
32    fixed with an appropriate workaround. [Neil Watkiss]
33
34 3.08  Sat May 28 10:10:29 CDT 2005
35
36  - Fixed a test failure with fast_abs_path() on Windows - it was
37    sensitive to the rootdir() change from version 3.07. [Steve Hay]
38
39 3.07  Fri May  6 07:46:45 CDT 2005
40
41  - Fixed a bug in which the special perl variable $^O would become
42    tainted under certain versions of perl. [Michael Schwern]
43
44  - File::Spec->rootdir() was returning / on Win32.  Now it returns \ .
45    [Michael Schwern]
46
47  - We now avoid modifying @_ in tmpdir() when it's not strictly
48    necessary, which reportedly provides a modest performance
49    boost. [Richard Soderberg]
50
51  - Made a couple of slight changes to the Win32 code so that it works
52    (or works better) on Symbian OS phones.  [Jarkko Hietaniemi]
53
54 3.06  Wed Apr 13 20:47:26 CDT 2005
55  
56  (No changes in functionality)
57
58  - Added a note to the canonpath() docs about why it doesn't collapse
59    foo/../bar sections.
60
61  - The internal-only function bsd_realpath() in the XS file now uses
62    normal arg syntax instead of K&R syntax. [Nicholas Clark]
63
64 3.05  Mon Feb 28 07:22:58 CST 2005
65
66  - Fixed a bug in fast_abs_path() on Win32 in which forward- and
67    backward-slashes were confusing things. [demerphq]
68
69  - Failure to load the XS code in Cwd is no longer a fatal error
70    (though failure to compile it is still a fatal error in the build
71    process).  This lets Cwd work under miniperl in the core. [Rafael
72    Garcia-Suarez]
73
74  - In the t/cwd.t test, don't enforce loading from blib/ if we're
75    testing in the perl core. [Rafael Garcia-Suarez]
76
77 3.04  Sun Feb  6 17:27:38 CST 2005
78
79  - For perls older than 5.006, the HAS_GETCWD symbol is not available,
80    because it wasn't checked for in older Configure scripts when perl
81    was built.  We therefore just ask the user whether the getcwd() C
82    function is defined on their platform when their perl is old.
83    Maybe in the future we'll try to automate this. [Reported by
84    several parties]
85
86  - Remove lib/ppport.h from the distribution, so that MakeMaker
87    doesn't accidentally pick it up and install it as a lib
88    file. [Jerry Hedden]
89
90  - Fixed a testing error on VMS that occurred when a user had
91    read-access to the root of the current volume. [Craig A. Berry]
92
93 3.03  Fri Jan 21 21:44:05 CST 2005
94
95  - Fixed a testing error if the first file we find in the root
96    directory is a symlink. [Blair Zajac]
97
98  - Added a test to make sure Cwd.pm is loaded from blib/ during
99    testing, which seems to be an issue in some people's environments
100    and makes it awfully hard to debug things on my end.
101
102  - Skip the _perl_abs_path() tests on Cygwin - they don't usually
103    pass, and this function isn't used there anyway, so I decided not
104    to push it.  Let 'em use `cwd`.
105
106 3.02  Sun Jan  9 19:29:52 CST 2005
107
108  - Fixed a bug in which Cwd::abs_path() called on a file in the root
109    directory returned strange results. [Bob Luckin]
110
111  - Straightened out the licensing details for the portion of the Cwd
112    module that comes from BSD sources. [Hugo van der Sanden]
113
114  - Removed the prototype from _perl_abs_path() and the XS version of
115    abs_path(), since all they seemed to be doing was causing people
116    grief, and since some platforms didn't have them anyway.
117
118  - Fixed a testing bug in which sometimes the wrong version of Cwd
119    (the version already installed on the user's machine) would get
120    loaded instead of the one we're building & installing.
121
122  - Sometimes getdcwd() returns a lower-case drive letter, so don't
123    require an upper-case letter in t/win32.t. [Jan Dubois]
124
125  - Fixed a memory leak in getdcwd() on win32. [Steve Hay]
126
127  - Added a copy of ppport.h to the distribution to aid compilation on
128    older versions of perl. [Suggested by Charlie Root]
129
130  - Don't bother looking for a 'pwd' executable on MSWin32 - there
131    won't be one, and looking for it can be extremely slow when lots of
132    disks are mounted. [Several people, including Andrew Burke]
133
134  - Eliminated a multi-argument form of open() that was causing a
135    syntax error on older versions of perl. [Fixed by Michael Schwern]
136
137  - The bug-fix changes for revision 0.90 of File::Spec somehow were
138    lost when I merged it into the PathTools distribution.  They're
139    restored now. [Craig A. Berry]
140
141  - File::Spec->canonpath() will now reduce paths like '[d1.-]foo.dat'
142    down to '[000000]foo.dat' instead of '[]foo.dat' or 'foo.dat'.
143    This is in better accordance with the native filename syntax
144    parser. [Craig A. Berry]
145
146  - In order to remove a recursive dependency (PathTools -> Test-Simple
147    -> Test-Harness -> PathTools), we now include a copy of Test::More in
148    the distribution.  It is only used for testing, it won't be installed
149    with the rest of the stuff.
150
151  - Removed some 5.6-isms from Cwd in order to get it to build with
152    older perls like 5.005.
153
154  - abs_path() on Windows was trampling on $ENV{PWD} - fixed. [Spotted
155    by Neil MacMullen]
156
157  - Added licensing/copyright statements to the POD in each .pm
158    file. [Spotted by Radoslaw Zielinski]
159
160 3.01  Mon Sep  6 22:28:06 CDT 2004
161
162  - Removed an unnecessary and confusing dependency on File::Spec from
163    the Makefile.PL and the Build.PL.
164
165  - Added a 'NAME' entry to the Makefile.PL, because otherwise it won't
166    even begin to work. [Reported by many]
167
168 3.00  Thu Sep  2 22:15:07 CDT 2004
169
170  - Merged Cwd and File::Spec into a single PathTools distribution.
171    This was done because the two modules use each other fairly
172    extensively, and extracting the common stuff into another
173    distribution was deemed nigh-impossible.  The code in revision 3.00
174    of PathTools should be equivalent to the code in Cwd 2.21 and
175    File::Spec 0.90.
176
177 ==================================================================
178 Prior to revision 3.00, Cwd and File::Spec were maintained as two
179 separate distributions.  The revision history for Cwd is shown here.
180 The revision history for File::Spec is further below.
181 ==================================================================
182
183 Cwd 2.21  Tue Aug 31 22:50:14 CDT 2004
184
185  - Removed "NO_META" from the Makefile.PL, since I'm not building the
186    distribution with MakeMaker anyway.  [Rohan Carly]
187
188  - Only test _perl_abs_path() on platforms where it's expected to work
189    (platforms with '/' as the directory separator). [Craig A. Berry]
190
191 Cwd 2.20  Thu Jul 22 08:23:53 CDT 2004
192
193  - On some implementations of perl on Win32, a memory leak (or worse?)
194    occurred when calling getdcwd().  This has been fixed. [PodMaster]
195
196  - Added tests for getdcwd() on Win32.
197
198  - Fixed a problem in the pure-perl implementation _perl_abs_path()
199    that caused a fatal error when run on plain files. [Nicholas Clark]
200    To exercise the appropriate test code on platforms that wouldn't
201    otherwise use _perl_abs_path(), run the tests with $ENV{PERL_CORE}
202    or $ENV{TEST_PERL_CWD_CODE} set.
203
204 Cwd 2.19  Thu Jul 15 08:32:18 CDT 2004
205
206  - The abs_path($arg) fix from 2.18 didn't work for VMS, now it's
207    fixed there. [Craig Berry]
208
209 Cwd 2.18  Thu Jun 24 08:22:57 CDT 2004
210
211  - Fixed a problem in which abs_path($arg) on some platforms could
212    only be called on directories, and died when called on files.  This
213    was a problem in the pure-perl implementation _perl_abs_path().
214
215  - Fixed fast_abs_path($arg) in the same way as abs_path($arg) above.
216
217  - On Win32, a function getdcwd($vol) has been added, which gets the
218    current working directory of the specified drive/volume.
219    [Steve Hay]
220
221  - Fixed a problem on perl 5.6.2 when built with the MULTIPLICITY
222    compile-time flags. [Yitzchak Scott-Thoennes]
223
224  - When looking for a `pwd` system command, we no longer assume the
225    path separator is ':'.
226
227  - On platforms where cwd() is implemented internally (like Win32),
228    don't look for a `pwd` command externally.  This can greatly speed
229    up load time.  [Stefan Scherer]
230
231  - The pure-perl version of abs_path() now has the same prototype as
232    the XS version (;$).
233
234 Cwd 2.17  Wed Mar 10 07:55:36 CST 2004
235
236  - The change in 2.16 created a testing failure when tested from
237    within a path that contains symlinks (for instance, /tmp ->
238    /private/tmp).
239
240 Cwd 2.16  Sat Mar  6 17:56:31 CST 2004
241
242  - For VMS compatibility (and to conform to Cwd's documented
243    interface), in the regression tests we now compare output results
244    to an absolute path. [Craig A. Berry]
245
246 Cwd 2.15  Fri Jan 16 08:09:44 CST 2004
247
248  - Fixed a problem on static perl builds - while creating
249    Makefile.aperl, it was loading a mismatched version of Cwd from
250    blib/ . [Reported by Blair Zajac]
251
252 Cwd 2.14  Thu Jan  8 18:51:08 CST 2004
253
254  - We now use File::Spec->canonpath() and properly-escaped regular
255    expressions when comparing paths in the regression tests.  This
256    fixes some testing failures in 2.13 on non-Unix platforms.  No
257    changes were made in the actual Cwd module code. [Steve Hay]
258
259 Cwd 2.13  Fri Jan  2 22:29:42 CST 2004
260
261  - Changed a '//' comment to a '/* */' comment in the XS code, so that
262    it'll compile properly under ANSI C rules. [Jarkko Hietaniemi]
263
264  - Fixed a 1-character buffer overrun problem in the C code. [The BSD
265    people]
266
267 Cwd 2.12  Fri Dec 19 17:04:52 CST 2003
268
269  - Fixed a bug on Cygwin - the output of realpath() should have been
270    tainted, but wasn't.  [Reported by Tom Wyant]
271
272 Cwd 2.10  Mon Dec 15 07:50:12 CST 2003
273
274  (Note that this release was mistakenly packaged as version 2.11, even
275  though it had an internal $VERSION variable of 2.10.  Not sure how
276  THAT happened...)
277
278  - There was a dependency in the Makefile.PL on Module::Build, which
279    isn't necessary.  I've removed it.
280
281 Cwd 2.09  Thu Dec 11 20:30:58 CST 2003
282
283  - The module should now build & install using version 5.6 of perl.
284
285  - We now note a build-time dependency on version 0.19 of
286    Module::Build, which is necessary because we don't use the standard
287    lib/-based file layout.  No version of Module::Build is required if
288    you use the Makefile.PL, just if you use the Build.PL .
289
290  - Removed some gratuitous uses of 5.6-isms like our(), with the aim
291    of backporting this module to perl 5.005.
292
293  - Simplified all code that autoloads Carp.pm and calls
294    carp()/croak().
295
296  - Removed some redundant OS/2 code at the suggestion of Michael
297    Schwern and Ilya Zakharevich.
298
299  - Make sure the correct version of Cwd.pm is loaded in the regression
300    tests. [Sam Vilain]
301
302 Cwd 2.08  Wed Oct 15 20:56 CDT 2003
303
304   - Code extracted from perl 5.8.1 and packaged as a separate CPAN
305     release by Ken Williams.
306
307 ==================================================================
308 Prior to revision 3.00, Cwd and File::Spec were maintained as two
309 separate distributions.  The revision history for File::Spec is shown
310 here.  The revision history for Cwd is above.
311 ==================================================================
312
313 File::Spec 0.90  Tue Aug 31 22:34:50 CDT 2004
314
315  - On VMS, directories use vmspath() and files use vmsify(), so
316    rel2abs() has to use some 'educated guessing' when dealing with
317    paths containing slashes.  [Craig A. Berry]
318
319 File::Spec 0.89  Sun Aug 29 19:02:32 CDT 2004
320
321  - Fixed some pathological cases on VMS which broke canonpath() and
322    splitdir().  [Richard Levitte and Craig A. Berry]
323
324  - Fixed rel2abs() on VMS when passed a unix-style relative
325    path. [Craig A. Berry]
326
327 File::Spec 0.88  Thu Jul 22 23:14:32 CDT 2004
328
329  - rel2abs() on Win32 will now use the new Cwd::getdcwd() function, so
330    that things like rel2abs('D:foo.txt') work properly when the
331    current drive isn't 'D'. This requires Cwd version 2.18.  
332    [Steve Hay]
333
334  - Got rid of a redundant double-backslash in a character
335    class. [Alexander Farber]
336
337  - Added much markup to pod for enhanced readability. [Andy Lester]
338
339 File::Spec 0.87  Fri Dec 19 08:03:28 CST 2003
340
341  - With a one-line change in the tests, backported to perl 5.004.
342    [Issue reported by Barry Kemble]
343
344 File::Spec 0.86  Fri Sep 26 10:07:39 CDT 2003
345
346  - This is the version released with perl 5.8.1.  It is identical to
347    the code in the File::Spec beta 0.85_03.
348
349 File::Spec 0.85_03  Mon Sep 15 09:35:53 CDT 2003
350
351  - On VMS, if catpath() receives volume specifiers in both its first
352    two arguments, it will now use the volume in the first argument
353    only.  Previously it returned a non-syntactical result which
354    included both volumes.  This change is the same in spirit to the
355    catpath() MacOS change from version 0.85_02.
356
357  - Fixed an abs2rel() bug on VMS - previously
358    abs2rel('[t1.t2.t3]file','[t1.t2]') returned '[t3]file', now it
359    properly returns '[.t3]file'.
360
361 File::Spec 0.85_02  Fri Sep 12 17:11:13 CDT 2003
362
363  - abs2rel() now behaves more consistently across platforms with the
364    notion of a volume.  If the volumes of the first and second
365    argument (the second argument may be implicit) do not agree, we do
366    not attempt to reconcile the paths, and simply return the first
367    argument.  Previously the volume of the second argument was
368    (usually) ignored, resulting in sometimes-garbage output.
369
370  - catpath() on MacOS now looks for a volume element (i.e. "Macintosh HD:")
371    in its first argument, and then its second argument.  The first
372    volume found will be used, and if none is found, none will be used.
373
374  - Fixed a problem in abs2rel() on Win32 in which the volume of the
375    current working directory would get added to the second argument if
376    none was specified.  This might have been somewhat helpful, but it
377    was contrary to the documented behavior.  For example,
378    abs2rel('C:/foo/bar', '/foo') used to return 'bar', now it returns
379    'C:/foo/bar' because there's no guarantee /foo is actually C:/foo .
380
381  - catdir('/', '../') on OS2 previously erroneously returned '//..',
382    and now it returns '/'.
383
384 File::Spec 0.85_01  Thu Sep 11 16:18:54 CDT 2003
385
386  Working toward 0.86, the version that will be released with perl 5.8.1.
387
388  - The t/rel2abs2rel.t test now is a little friendlier about emitting
389    its diagnostic debugging output. [Jarkko Hietaniemi]
390
391  - We now only require() Cwd when it's needed, on demand. [Michael
392    Schwern, Tels]
393
394  - Fixed some POD errors and redundancies in OS2.pm and Cygwin.pm.
395    [Michael Schwern]
396
397  - The internal method cwd() has been renamed to _cwd(), since it was
398    never meant for public use. [Michael Schwern]
399
400  - Several methods in File::Spec::Unix that just return constant
401    strings have been sped up.  catdir() has also been sped up there.
402    [Tels]
403
404  - Several canonpath() and catdir() bugs on Win32 have been fixed, and
405    tests added for them:
406       catdir('/', '../')   -> '\\'     (was '\..')
407       catdir('/', '..\\')  -> '\\      (was '')
408       canonpath('\\../')   -> '\\'     (was '')
409       canonpath('\\..\\')  -> '\\'     (was '')
410       canonpath('/../')    -> '\\'     (was '\..')
411       canonpath('/..\\')   -> '\\'     (was '')
412       catdir('\\', 'foo')  -> '\foo'   (was '\\foo')
413
414  - catpath($volume, $dirs, $file) on Mac OS now ignores any volume
415    that might be part of $dirs, enabling catpath($volume,
416    catdir(rootdir(), 'foo'), '') to work portably across platforms.
417
418 File::Spec 0.85  Tue Jul 22 11:31 CDT 2003
419
420  A bug-fix release relative to 0.84.  I've forked development into a
421  "stable" branch (this one) and a more aggressive branch (as yet
422  unreleased), with an eye toward getting the stable features in perl
423  5.8.1.
424
425  - File::Spec::Mac->case_tolerant() returned 0 when it should have
426    returned 1.
427
428  - Many cases in File::Spec::Win32->abs2rel() were broken, because of
429    the way in which volumes were/weren't ignored.  Unfortunately, part
430    of the regression tests were broken too.  Now, if the $path
431    argument to abs2rel() is on a different volume than the $base
432    argument, the result will be an absolute path rather than the
433    broken relative path previous versions returned.
434
435  - Fixed a problem in File::Spec::Win32->canonpath, which was turning
436    \../foo into "foo" rather than \foo
437
438  - Greatly simplified the code in File::Spec::Unix->splitdir().
439
440 File::Spec 0.84_01  Fri Jul 11 16:14:29 CDT 2003
441
442  No actual code changes, just changes in other distribution files
443
444  - Dependencies are now listed explicitly in the Makefile.PL and
445    Build.PL scripts, as well as in the META.yml file.
446
447  - The t/abs2rel2abs.t test should now be more friendly about skipping
448    on platforms where it can't run properly.
449
450 File::Spec 0.84  Wed Jul  9 22:21:23 CDT 2003
451
452  I (Ken)'ve taken the changes from bleadperl and created a new CPAN release
453  from them, since they're pretty important changes.  The highlights,
454  from what I can tell, are listed here.
455
456  - A huge number of changes to File::Spec::Mac in order to bring it in
457    line with the other platforms.  This work was mostly/completely
458    done by Thomas Wegner.
459
460  - The Epoc and Cygwin platforms are now supported.
461
462  - Lots of generically-applicable documentation has been taken from
463    File::Spec::Unix and put in File::Spec.
464
465  - A Build.PL has been provided for people who wish to install via
466    Module::Build.
467
468  - Some spurious warnings and errors in the tests have been
469    eliminated. [Michael Schwern]
470
471  - canonpath() on File::Spec::Unix now honors a //node-name at the
472    beginning of a path.
473
474  - Cwd.pm wasn't being loaded properly on MacOS. [Chris Nandor]
475
476  - Various POD fixups
477
478  - Several testing patches for the Epoc and Cygwin platforms [Tels]
479
480  - When running under taint mode and perl >= 5.8, all the tmpdir()
481    implementations now avoid returning a tainted path.
482
483  - File::Spec::OS2 now implements canonpath(), splitpath(),
484    splitdir(), catpath(), abs2rel(), and rel2abs() directly rather
485    than inheriting them from File::Spec::Unix.
486
487  - Added 'SYS:/temp' and 'C:/temp' to the list of possible tmpdir()s
488    on Win32.
489
490  - catfile() on Win32 and VMS will now automatically call canonpath()
491    on its final argument.
492
493  - canonpath() on Win32 now does a much more extensive cleanup of the
494    path.
495
496  - abs2rel() on Win32 now defaults to using cwd() as the base of
497    relativity when no base is given.
498
499  - abs2rel() on Win32 now explicitly ignores any volume component in
500    the $path argument.
501
502  - canonpath() on VMS now does []foo ==> foo, and foo.000000] ==> foo].
503    It also fixes a bug in multiple [000000.foo ==> [foo translations.
504
505  - tmpdir() on VMS now uses 'sys$scratch:' instead of 'sys$scratch'.
506
507  - abs2rel() on VMS now uses '000000' in both the path and the base.
508
509 File::Spec 0.82 Wed Jun 28 11:24:05 EDT 2000
510    - Mac.pm: file_name_is_absolute( '' ) now returns TRUE on all platforms
511    - Spec.pm: unbreak C<$VERSION = '0.xx'> to be C<$VERSION = 0.xx>, so
512      underscores can be used when I want to update CPAN without anyone
513      needing to update the perl repository.
514    - abs2rel, rel2abs doc tweaks
515    - VMS.pm: get $path =~ /\s/ checks from perl repository.
516    - Makefile.PL: added INSTALLDIRS => 'perl', since these are std. modules.
517    - Remove vestigial context prototypes from &rel2abs until some future
518      arrives where method prototypes are honored.