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