Tcl Library Source Code

History of modules/fileutil/fileutil.tcl of 4dc136d4389178dc
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History of file modules/fileutil/fileutil.tcl at check-in 4dc136d4389178dc

2023-09-29
12:01
Bumped package version for all modules [a-j]*. file: [d80b846021] check-in: [8802bae4d5] user: rolf branch: tcl9-testarea-rde, size: 57722
2023-08-26
01:07
Removed code needed for versions prior to Tcl 8.5. Fixed a few package vsatisfies calls. file: [fbee83126d] check-in: [fc617c4610] user: pointsman branch: tcl9-testarea-rde, size: 57722
2023-08-11
23:52
More adaption to the package require Tcl commands, following what was discussed at the montly meeting 2023/08. More work and changes to come. file: [58e95c7766] check-in: [46ab6ea7c8] user: rolf branch: tcl9-testarea-rde, size: 64095
2023-07-11
21:24
Added a comment to the changed place in tar.tcl. Rolled back the change in S3.tcl; not only because that code will atm never reachedn but also because it was false at this place. Changed all over the place the arguments to [file attributes $names -permissions] to the octal syntax 0o which is understood by all supported Tcl versions. file: [d51ce83b03] check-in: [fa9d5493f7] user: rolf branch: tcl9-testarea-rde, size: 64094
2023-07-05
15:55
fileutils done. file: [ceaa477c10] check-in: [858fab5226] user: rolf branch: tcl9-testarea-rde, size: 64093
2023-06-23
10:22
Pointsman testbed. file: [9336014e9d] check-in: [a5532890a4] user: rolf branch: tcl9-testarea-rde, size: 64372
2021-03-23
10:09
fileutil - B - ticket [d0dd236f1c] - Fix maketempdir for windows Bumped to version 1.16.1 Cleaned trailing whitespace. Thanks to @sbromle for the report and patch. And their patience. file: [c3b2465a97] check-in: [d1f2984e92] user: aku branch: trunk, size: 64369
2019-06-25
16:13
fileutil - Fixed two typos in code comment. file: [346b61142b] check-in: [8524181fda] user: aku branch: trunk, size: 64443
2017-12-14
00:13
Extended fileutil::fileType to detect sqlite3 databases, and to detect the three types of fossil databases (repo, checkout, global config). Package version bumped to 1.16. file: [74868901af] check-in: [35b066e84e] user: aku branch: trunk, size: 64446
2016-06-05
21:33
Improve error propagation in fileutil::foreachLine. file: [4709390bcb] check-in: [7a61179f8d] user: pooryorick branch: trunk, size: 63901
2015-07-02
20:28
fileutil - New command "maketempfile", submitted by "Miguel Martinez Lopez". Integrated with some fixes. Docs written. Tests written. Packaged bumped to version 1.15 (new feature). file: [5c94577545] check-in: [48b834542d] user: andreask branch: trunk, size: 63964
2015-06-02
00:55
fileutil - Ticket [acd8c27943] - Fixed file-type detection for PDF files, While most are "binary", they can be "text", Version bumped to 1.14.11. Extended testsuite. file: [790f64c017] check-in: [2b866cf322] user: aku branch: trunk, size: 62419
2014-11-27
05:44
fileutil, traverse - Bumped another patchlevel. Bug in cycle slipped through testing (Typo in the varnames). This then exposed a bug in the 8.5+ specific implementations of GLOBD and GLOBF, with the link check done wrongly for relative links. Traverse was ok only because it was missing these implementations entirely. Both are now fixed too, i.e. link check corrected, and traverse extended to have the same helper code. Updated tests, docs. No ticket associated with this. file: [89cd6bea20] check-in: [4dc136d438] user: aku branch: trunk, size: 62431
00:54
Updated version information in the package index as well, and updated the documentation. This is now ready for merging. file: [99eccb7632] check-in: [4599fe667f] user: andreask branch: ak-fix-traverse-symlinks, size: 62441
2014-06-20
22:37
fileutil :: [659fec4826]. Simplified TempFile a bit more Dropped bogus use of TRUNC. Removed superflous check implied by EXCL. Removed irrelevant loop delay. file: [9f77f2cf10] check-in: [9520c7d9d7] user: andreask branch: trunk, size: 62035
19:44
fileutil :: [659fec4826] Removed unused pid calculation. Bumped version to 1.14.7. file: [11bf7dccec] check-in: [0b83eb3dd5] user: andreask branch: trunk, size: 62107
2013-07-11
17:25
Ticket [8b317b4a63]: Added code to the 8.4+ implementations of GLOBF and GLOBD to guard ourselves against VFS packages mishandling the -types option of [glob]. vfs::zip is an example. This mishandling causes glob to return the same data for the two calls with "-types x" and "-types {hidden x}", generating lists with duplicate entries. We now generally de-duplicate the result ourselves. Bumped the package version to 1.14.6. Thanks to <[email protected]> for the investigation identifying this problem. file: [12a1c73177] check-in: [4afba263b2] user: andreask branch: bug-8b317b4a63-fileutil, size: 62126
2013-01-09
00:17
[Bug 3147481], [Bug 3141568]. Fixed issues with changes to [glob]'s behaviour in 8.5+, reported by [email protected]. Plus [Bug 3599839] reminding us of these, and Win 7. Bunped version to 1.14.5. Extended testsuite, can be repro'd under Unix also. file: [a5e88ba419] check-in: [91efe94a91] user: aku branch: trunk, size: 62002
2010-06-17
04:46
* fileutil.tcl (::fileutil::fileType): Fumbled the extension of * fileutil.man: the doctools/toc/idx detector in the last change. * pkgIndex.tcl: Fixed the bogosity, merging the separate checks. Bumped to version 1.14.4. file: [9a1a9f699b] check-in: [526db884d2] user: andreas_kupries branch: trunk, size: 60572
2010-06-09
17:16
* fileutil.tcl (::fileutil::fileType): Extended to recognize tklib * fileutil.man: diagram files, and extended the doctools/toc/idx * pkgIndex.tcl: detector to accept markers in the same style as for tklib diagrams. Bumped to version 1.14.3. file: [68b56b4d55] check-in: [b5e1fee1e3] user: andreas_kupries branch: trunk, size: 60847
2009-11-24
21:27
* fileutil.tcl: Extended the doctools/toc/idx detector with * fileutil.man: checks for inclusion and exclusion markers * pkgIndex.tcl: allowing the user to force acceptance or rejection of files for complex situations (like an include file looking like a doctools main file but not bein so, and the converse, a main file lacking the regular marker, which is hidden in an included file). Bumped to version 1.14.2. file: [23f60bf443] check-in: [e86f0771b9] user: andreas_kupries branch: trunk, size: 60164
2009-10-27
19:16
* fileutil.tcl (::fileutil::stripPath): [Bug 2872536]. Fixed both * fileutil.man: issues. Compare the canonical list representations * pkgIndex.tcl: for the \\bar problem, and separate $prefix from * strip.test: '*' by a space to prevent matching on a partial path segment. Thanks to Ashok P. Nadkarni <[email protected]> for the report. Bumped the version to 1.14.1. Extended the testsuite. * pathops.test: Cleaned up some win vs unix issues in the tests. file: [bec4fcb1f4] check-in: [1a5bf50baa] user: andreas_kupries branch: trunk, size: 59854
2009-09-14
17:10
* fileutil.tcl: Renamed the internal command 'LexNormalize' to * fileutil.man: 'lexnormalize' and documented it, making it * pkgIndex.tcl: public. Bumped version to 1.14. This closes and accepts the feature request [SF Tcllib Bug 2855302]. Tests are currently only indirect, through testing of commands 'jail' and 'relativeUrl'. file: [767652511f] check-in: [9df261291a] user: andreas_kupries branch: trunk, size: 59844
2009-02-05
23:40
* fileutil.tcl (::fileutil::stripPath): Fixed handling * fileutil.man: of letter-case on windows, comparisons * strip.test: have to be case-insensitive. Bumped version * pkgIndex.tcl: to 1.13.6. See [SF Tcllib Bug 2499641]. file: [6e9dddbb42] check-in: [9b1842d2f2] user: andreas_kupries branch: trunk, size: 59846
2008-12-02
17:29
* fileutil.man: Fixed [Bug 2376321] (fileutil::TempDir, use * fileutil.tcl: of env(TRASHFOLDER) for OSX). Bumped version * pkgIndex.tcl: to 1.13.5. file: [d17bfa6f8d] check-in: [c32d2102d6] user: andreas_kupries branch: trunk, size: 59140
2007-10-24
19:28
* fileutil.tcl: Changed handling of broken symbolic links * fileutil.man: by fileutil::find and fileutil::traverse. * traverse.tcl: They are now recognized and returned. * traverse.man: Extended the testsuite. Bumped fileutil * pkgIndex.tcl: to v1.13.4 and fileutil::traverse to v0.4. * find.setup: * find.test: * traverse.text: file: [2916274a17] check-in: [605bf758ee] user: andreas_kupries branch: trunk, size: 59132
2007-08-10
19:40
* multiop.tcl: New features - Recursive processing. * multiop.test: Expand only mode. Save/restore set of files * pkgIndex.tcl: to/from a variable. Platform checking * multi.test: semi-conditional commands. Invoke a user command for * multiop.man: the file set. Test suite extended, documentation updated. Version bumped to 0.2 file: [142bbb1e49] check-in: [9a8534e88a] user: andreas_kupries branch: trunk, size: 57981
18:21
* fileutil.tcl: The rewrite of find changed how it invoked the * fileutil.man: filter command. As that however is documented this * pkgIndex.tcl: change is a bug. Restored the old way of invoking * find.test: the filter command. Version bumped to 1.13.3. Extend the testsuite to verify the API. file: [8576ae987c] check-in: [980bd71a9f] user: andreas_kupries branch: trunk, size: 57980
2007-08-08
19:42
* inplace.test: Fixed failures of some tests on Windows. * fileutil.tcl: Working around a possible bug in the handling of path intreps by the core, on Windows. See commentary in 'fullnormalize', and 'find.setup' (f_setupcircle). * find.test: Moved the support code into a separate file, the new * find.setup: 'find.setup'. Added a testsuite for the package * traverse.test: 'fileutil::traverse', using the same support * traverse.tcl: code. Rewrote the internals of traverse.tcl based * traverse.man: on the experience gained by the rewrite of 'find', * pkgIndex.tcl: using similar re-focatorization of the platform and core dependencies, and made the traversal state variables easier to understand (separated the processing and result stack). Bumped version of traverse to 0.3. file: [81dad88a0f] check-in: [664f9dd378] user: andreas_kupries branch: trunk, size: 57907
2007-08-07
22:46
* fileutil.tcl (::fileutil::find): Command rewritten to use a * pkgIndex.tcl: portable iterative traversal core. Platform and * fileutil.man: Tcl version dependencies have been re-factored into separate small commands. Should be more readable and maintainable. Handling of circular symbolic links is now portable (via a portable 'file normalize'). Order of paths in the output changed, this however was never documented. Version bumped to 1.13.2. file: [6288463fc0] check-in: [a466def993] user: andreas_kupries branch: trunk, size: 57365
2007-07-27
20:26
* fileutil.tcl: Fixed problems of 'relative' and 'relativeUrl' * fileutil.man: with paths containing . and .., i.e. like * fileutil.test: '/foo/bar/../common'. Done by making the paths * pkgIndex.man: absolute and then using LexNormalize to remove them. Added a fast path to LexNormalize to quickly return for paths not containing . nor .. Also fixed bug in handling .. with short relative paths. Extended the testsuite. Package bumped to version 1.13.1 (patchlevel, bugfixes only). file: [4adc39d318] check-in: [ccc9e6f0f1] user: andreas_kupries branch: trunk, size: 57612
2007-06-19
01:56
* fileutil.tcl (::fileutil::fullnormalize): Simplified the implementation by recognizing that the complex file split/lrange/eval/join combo is just 'file dirname'. file: [0d8cebe309] check-in: [3c890d28fb] user: andreas_kupries branch: trunk, size: 56750
2007-05-29
03:00
* fileutil.tcl: Added command 'tempdirReset' to allow users to * fileutil.man: clear the information set via 'tempdir path'. * pkgIndex.tcl: Bumped package to version 1.13. Additionally extended relative-url computation to make the result of an edge-case nicer looking (result was ok, but not optimal). Extended testsuite for this. Extended error output when computation of relative path fails. file: [4aa2f88b63] check-in: [ff02b78993] user: andreas_kupries branch: trunk, size: 56922
2007-03-28
22:48
* fileutil.tcl (::fileutil::fileType): Added definitions to * pkgIndex.tcl: recognize Apple .icns files. * fileutil.man: Bumped version up to 1.12. file: [1a73ea15c8] check-in: [54acb3951f] user: andreas_kupries branch: trunk, size: 56516
2007-03-12
23:25
* fileutil.tcl (::fileutil::TempDir): Added code to collect all * pkgIndex.tcl: problems encountered, to be reported if no temp * fileutil.man: directory could be found, to aid in the debugging of the situation. Bumped version up to 1.11. file: [70af42a8e3] check-in: [6b38614798] user: andreas_kupries branch: trunk, size: 56302
2007-02-16
05:12
* fileutil.tcl: Added a command [fileutil::fullnormalize]. * fileutil.man: Documented it, extended the testsuite. Bumped * filetuil.test: version up to 1.10. Removed nonsensical * pkgIndex.tcl: [file join one_element] calls from the testsuite. file: [b286b05e3f] check-in: [e75d821909] user: andreas_kupries branch: trunk, size: 55981
2006-09-19
23:36
Updated version numbers of a number of packages. file: [86df740a6d] check-in: [e7961e7beb] user: andreas_kupries branch: trunk, size: 55003
2006-07-19
16:22
* fileutil.tcl (fileutil::jail): Fixed [Tcllib SF Bug 1525172], by * fileutil.test: Ramon Ribo. Accepted the provided solution. Extended the testsuite. file: [c9bc7d9356] check-in: [005cf1e87c] user: andreas_kupries branch: trunk, size: 55005
2006-06-16
19:33
* fileutil.tcl: Added commands to compute paths relative to some * fileutil.man: base. Extended testsuite, documentation. * fileutil.test: * pkgIndex.tcl: file: [15ca453de0] check-in: [7881095bd9] user: andreas_kupries branch: trunk, size: 54992
2006-04-20
05:21
Import of Pat Thoyts' work on the SASL packages. Fixes to common menchanisms when handling an empty challenge. Added X-GOOGLE-TOKEN support. Added 'x' / 'exec' for 'eXec'utable to the [test] command of fileutil. file: [a8b93269b5] check-in: [7050fdd680] user: andreas_kupries branch: trunk, size: 52823
2006-03-07
07:40
Extended tempdir to allow the user to override the standard search algorithm with an explicitly provided directory. file: [d1c4e4bc8b] check-in: [1a06915b6c] user: andreas_kupries branch: trunk, size: 52769
06:51
Extended pacage with a command for easy testing of multiple properties of a path. Resynchronized the ifneeded/provide version information of math::bignum. file: [2df8b637f9] check-in: [c7087bbafb] user: andreas_kupries branch: trunk, size: 52108
2006-02-10
03:31
Updated the documentation. Extended testsuite to cover 'updateInPlace'. Fixed writeback of command. Command implementations and testsuite are now complete. Documentation is still missing. More work on the testsuite for the new commands. More argument checking in the new commands. Shorter implementations for degenerate cases. Extended testsuite to cover 'writeFile' and fixed problems in common support commands used by it. New commands formanipulation of file contents, extended 'cat', start on extended testsuite. Import of documentation fix by myself. file: [e61a9dfbb8] check-in: [5d7a34378d] user: andreas_kupries branch: trunk, size: 50844
2005-09-30
05:36
Second round of checking packages, their changes, and versions. Updated lots of packages, and sync'd with README. file: [103f09d27c] check-in: [dd5aa35384] user: andreas_kupries branch: trunk, size: 36872
2005-09-28
04:51
Another bad whitespace merge. Fixed bad whitespace merges from ME. Fixed some warnings reported by frink. Fixed naming of page in installed modules, added application as well, fixed date of integration. Updated naming and integration date of ME module. Import of fix to cache invalidation bug of tie::std::file. file: [0e695a7a8b] check-in: [48a590216e] user: andreas_kupries branch: trunk, size: 36872
2005-08-16
06:06
Polishing the C code. Moved some general code out of the testsuite into the controller. Import of SNTP fixes by Pat Thoyts. file: [c7e7c83f7a] check-in: [50058df9d0] user: andreas_kupries branch: trunk, size: 36872
2005-07-08
03:41
ChangeLog: Prepared for integration to mainline Updated plugin management with option -setup, method clone. Import Reinhard's extensions to pop3d - CAPA support. Undo wrong auto-merge. Fixed version number in documentation. Accumulated changes. Import Reinhard's extension to pop3d to allow use of TLS for sockets. Import fixes by Michael Schlenker regarding the handling of callbacks. Import of bigfloat updates by S. Arnold. Import fixes to testuite regarding command conflicts. Corrected typos in the testsuite for the new commands. Math import, and accumulated changes in other branches. Import of additional statistics code, and elliptic curves. Restored changelog entries dropped by merge. Fixed bug in file walker, it excluded all symbolic links, instead of just not following circular ones. Fixed a typo in the new documentation file. Undo failed auto-merges. Accumulated changes. Import first documentation for blowfish. Import bugfix by Pat regarding handling of empty return path addresses. Added report of missing API commands to validation, setting plugin name earlier, for use of 'do' in validation callback, setting up of externals cleaner. file: [c0d38006e0] check-in: [0f468d8726] user: andreas_kupries branch: trunk, size: 36872
2005-06-22
02:36
Fixed bug in file walker, it excluded all symbolic links, instead of just not following circular ones. Fixed a typo in the new documentation file. Undo failed auto-merges. file: [64498fa5a2] check-in: [f2ec71a828] user: andreas_kupries branch: trunk, size: 36872
2005-02-11
05:08
Removed magic.tcl, code moved to 'mimetypes.tcl'. Renamed the package as well. Added testsuite for mimetype command, derived from fileutil testsuite, fileType command. Manual merges New module fileutil::magic, short "fumagic". Imported Pat's fix to uuid's critcl implementation: Added an include missing before. Imported changes by Pat to the sasl code: New namespace and package name, more tests. Imported fix to fileutil's jail command, corrected handling of volume relative paths on windows. file: [9bd7ba75c7] check-in: [c788151845] user: andreas_kupries branch: trunk, size: 36870
2005-02-10
17:16
* fileutil.tcl (fileutil::jail): Fixed a problem reported by Pat Thoyts. Test jail-2.1 failed on windows. The reason was improper handling of volume-relative paths. They have to be handled like absolute paths, but were not. Changed the initial if condition a bit to fix this. file: [bd22624d87] check-in: [a50c6d4989] user: andreas_kupries branch: trunk, size: 36608
2005-02-09
05:52
Import SArnold changes to bigfloat. New commands: jail, stripPath. Implemented, documented, tested. Fix for [SF Tcllib Bug 862421 aka 1111153]. Catching problems with 'cd' into inaccessible directories, ignored the directories. file: [3bbcc4197b] check-in: [2336f43888] user: andreas_kupries branch: trunk, size: 36576
2005-02-02
06:48
Fix for [SF Tcllib Bug 862421 aka 1111153]. Catching problems with 'cd' into inaccessible directories, ignored the directories. Merging bugfix and new SASL module. ChangeLog manual merge. file: [a34ddb83dc] check-in: [710456ed82] user: andreas_kupries branch: trunk, size: 29973
2004-12-01
22:23
Fixed SF Tcllib Bug 1037636 by changing tempfile's random character selection expression from [clock clicks] to rand(). file: [98bf567829] check-in: [46911b8b22] user: techentin branch: trunk, size: 29610
2004-10-03
23:06
Mainly updated docs to latest round of changes. Get package index. Import treeql work by Colin. Testsuite fix in cmdline. TreeQL doc fixup, new files for TreeQL ideas. Struct::Tree doc fixup (examples, structure, node creation). Tar file doc extension, added keywords and descriptions. Updated version numbres according to the changes made. Added README for the new release. Version sync and move of K for 8.5 code, fogotten earlier. First doctools documentation. file: [4a49c21656] check-in: [b334b71c68] user: andreas_kupries branch: trunk, size: 29632
2004-06-16
18:02
* fileutil.tcl (fileType): Added code to recognize files written in the doctools, doctoc, and docidx documentation formats. file: [f580d02212] check-in: [0042e7a588] user: andreas_kupries branch: trunk, size: 29634
2004-05-30
20:30
2004-05-30 Aaron Faupell <[email protected]> * fileutil.tcl: added tests for dos executables, tar, zip, bmp, wav, and mp3 to fileType * fileutil.man: updated to reflect new types for fileType file: [f6041da8bd] check-in: [0f4f5b261a] user: afaupell branch: trunk, size: 29355
2004-05-27
02:47
Tagged for release. Last minute fix of buglet in smtp, asking for wrong version of mime. Release engineering. Updated version numbers to reflect the changes made to various modules and packages. Also added the README for version 1.6.1. file: [e4636fdc3f] check-in: [8b7c527b6d] user: andreas_kupries branch: tcllib-1-6-branch, size: 28084
2004-05-26
04:24
Import of Michael Schlenker's enhancements to David's logger package. Import of Michael Schlenker's bugfixes for David's logger package. Import Pat Thoyt's bugfix regarding setting of loglevels in the dns module. Import of Pat Thoyts bugfix regarding the installation of the struct1 module. Updated the version information in a number of packages to sync with the numbers in the 1.6.1 release, or to pull ahead and distinguish ourselves, where appropriate. file: [fe1492db4a] check-in: [93369ff9aa] user: andreas_kupries branch: trunk, size: 28080
2004-05-24
02:58
Downgraded to version 1.3.6, removed -decode extension from this branch. Import of ftpd bugfix by Gerald Lester. Last commit was a bad update, caused duplicates of changes to appear. Failed testsuite. Removed all the duplicates now. Fixed SF Tcllib Bug 954328. Mime now adapts at runtime to whatever version of md5 has been loaded. Updated test for rewritten adjust which fixed the infinite looping demonstrated by tests 2.6 and 2.7. Also fixed a var usage typo which caused a copy of the input to appear in the output, before the expected formatted result. Fixed bug in the processing of multi-word section titles for text based formats. Fixed bug 951568, regarding the usage of Trf's generic transform. Fixed problems with jpeg recognition (was unable to detect a jpeg file, if it contained exif data). Changelog for last patch, and updates in related package. Completed application of code for various fixes. Rewritten text adjustment and hyphenation, fixing SF TCllib Bug 882402. Fixed SF Tcllib Bug 936064, and evals more robust. Fixed SF Tcllib Bug 893516 Fixed SF Tcllib Patch 763712 Fixed SF Tcllib Patch 758742 Fixed SF Tcllib Bug 620852 Eval usage made more robust and similar. Fixed SF Tcllib Bug 943146. Fixed SF Tcllib Bug 940651 SF Tcllib Bug 784519 fixed. Pat: sak.tcl update for better use of critcl. Joe: Fix in doctools xml support. Import bugfix by Pat Thoyts, Handling of data starting with hyphen/dash Import of uuencode changes by Jeff Hobbs. Changed defaults for package 'log'. No output for the all levels below 'error'. Unified the startup header of all applications, using suggestions made by Stuart Cassof <[email protected]>. Added testcase for Tcllib SF Bug 860753. The bug itself was already fixed for Tcllib 1.6. Fix for bug 899204. Test data file is opened read-only, and tests made independent of each other. Bugfix 899152, 899209. Require Tcl 8.2 for installer, delete file before writing over it. Import of time fix by Pat Thoyts, patch #905132. Cleanup fix: Snit depends on Tcl 8.4, this is documented, however neither package index, nor testsuite enforced the restriction, allowing for errors. This has been changed now. Fixed typos file: [95ca891e97] check-in: [68c5dd3dab] user: andreas_kupries branch: tcllib-1-6-branch, size: 28082
2004-05-11
19:14
2004-05-11 Aaron Faupell <[email protected]> * fileutil.tcl: updated the jpeg test to recognize exif format file: [e51d98548b] check-in: [ed7818db7d] user: afaupell branch: trunk, size: 28071
2004-05-03
22:56
Applied patch for 822850. Usage of eval in various modules. file: [e8cfca40cd] check-in: [ba0e42d588] user: andreas_kupries branch: trunk, size: 27865
2004-02-10
06:44
* typedCmdline.test: Fixed the problems of the testsuite with * cmdline.test: Tcl 8.5. It relied on the order of data returned by [array get]. * doctools.test: Fixed problems with Tcl 8.5, the tests were dependent on the order of keys in the result of [array get]. * fileutil.test: The tempdir tests used advanced test syntax not available before 8.4 (IIRC). Not useable for 8.2. Ditto the lot of the install tests also used 8.3 and 8.4 features. Straightened the bad syntax out (killed the tests), and added proper constraints to the tests. * fileutil.tcl: Ooops. fileutil is certified for usage with Tcl 8.2, there is no [file normalize] before 8.4. Made the usage (See 2004-02-03) conditional. * htmlparse.tcl: When changing the 'walk' method of 'struct::tree' * htmlparse.test: adaption of this module was forgotten. Fixed. Also fixed problem with usage of 8.3'ism in 'mapEscapes. * ncgi.tcl: The variable '_tmpfiles' was used in conjunction with * ncgi.test: some 8.4'isms. The package is certified for Tcl 8.2. Replaced the offending constructs with equivalents acceptable to the lesser cores. Spelling fixes in the * formdata.txt: tests, and supporting data file. file: [b13931015b] check-in: [7591901447] user: andreas_kupries branch: trunk, size: 27840
2004-02-03
22:28
* fileutil.tcl (tempdir, tempfile): Now [file normalize]'ing the results of these two commands. More windows friendly. file: [aa1ceb8322] check-in: [23e0e948b1] user: andreas_kupries branch: trunk, size: 27444
2004-01-30
19:22
* fileutil.tcl (fileType): The check for an attached metakit database left a channel on the tested file open. This causes the application to leak channels, and on windows the file is also locked against deletion. Fixed. file: [d8f0110217] check-in: [f1b8cf2114] user: andreas_kupries branch: trunk, size: 27410
06:58
* fileutil.tcl (fileutil::find): Fixed bug in handling a single file as base directory: The initial list was not set up as a list, and the test results (see below) were not listified either for these cases. That broke down for paths containing spaces. Also fixed: Neither the windows nor the pre-8.4 version of the command had been modified to deal with a single file. Oversight from the change @ 2003-10-22 by David N. Welton <[email protected]>. Regularized a number of error returns. * fileutil.test: Changed testsuite to use files and directories containing spaces in their names. A number of tests failed. Modified the tempdir tests to better exclude and manipulate the environment to enforce the wanted result. * struct_tree.man: Extended with table showing the relationship between the various combination of type and order, and the possible visitor actions. * struct_tree.man: Updated documentation. * tree.test: Updated testsuite for modified 'walk' syntax. * tree.tcl (method walk): Modified to use list of loopvariables, containing either one or two. Default: One variable, node information. When two specified the first refers to action data. * list.test: Added test for call with illegal option. * list.tcl (Lflatten): Added proper error message when encountering an unknown/illegal option. * struct_tree.man: Updated the documentation to reflect the changes below. * tree.test: Updated testsuite to reflect the changes made below. * tree.tcl (walk): Changed API to be more like [foreach]. Allowing break/return/continue in the walk body as well now too. file: [a0bb69f7ed] check-in: [78daf38966] user: andreas_kupries branch: trunk, size: 27295
2004-01-25
07:29
* sak.tcl: Added a very primitive approval mechanism to suppress output from the package comparison in 'status'. Allows to work through a set of problems with repeated comparison, approving packages when done. * sak.tcl: Extended functionality for release engineering. Better comparison of current state against last release. Alerts for mismatches in version numbers of packages versus changes made to them. * PACKAGES: New file. Always carries the package information from the last release. Basis for the release status work above. Currently contains the 1.4 data. + Reviewed modules, updated version numbers. file: [7b20983492] check-in: [76a0f9f023] user: andreas_kupries branch: trunk, size: 26439
2004-01-15
06:36
* matrix.man: Implemented Ed Suominen's sort methods, with * matrix.tcl: modifications to speed things up, and to have * matrix.test: a more standard API (-options). * matrix.man: Documented method links. * matrix.test: Updated test to cover for method links. * matrix.tcl: Changed the code to determine the list of available methods automatically for use in the error message when an unknown method is called. * matrix.test: * matrix.tcl: Namespaces of objects now standalone, and not inside of struct::matrix anymore. Arbitrary placement of objects is now possible, including nested namespaces. Cleanup of all references to instance variables. * matrix.tcl: Made the return of errors more regular. * matrix.tcl: Changed a number of eval calls to the more proper 'uplevel 1'. This means that an implementation of a method can now assume that it is called on the same stack level as the method itself. * matrix.tcl: Typo in comments fixed. * matrix.tcl (__set_rect): Fixed typos in var names causing the system to retain bogus cache data. file: [1c19b6a306] check-in: [77fa019603] user: andreas_kupries branch: trunk, size: 26441
2003-11-15
00:23
* fileutil.man: Added new test and docs for change below. * fileutil.tcl (::fileutil::cat): Make cat accept multiple files (bug [830075]). file: [52401226c6] check-in: [e343a85d1a] user: davidw branch: trunk, size: 26432
2003-10-23
12:37
* fileutil.test (tempdir): Added a few very simple tests for tempdir under Unix. * fileutil.tcl (::fileutil::tempdir): Added tempdir implementation. (::fileutil::tempfile): Use new tempdir command. * fileutil.tcl (::fileutil::find): Change Unix version of find command to accept a file (as opposed to a directory) as an argument. This reflects the behavior of the Unix find command. This change also needs to be added to the windows version, but should probably be done by someone who can test it on that platform. (::fileutil::install): -m option only works on Unix, as far as I know. (::fileutil::install): Make sure correct thing is chmod'ed. * fileutil.test: Added tests for find to check that it works ok with a single file as an argument. Also, error out if initial file does not correspond to 'isfile' or 'isdirectory'. file: [2f4a6bc8a2] check-in: [dccc23bc5f] user: davidw branch: trunk, size: 26444
2003-09-04
00:10
* fileutil.tcl (fileutil::fileType): Fixed the SourceForge Tcllib bug [795585]. We are now allowing whitespace between the #! and path of the script interpreter. Extended to identify metakit databases, also when attached to another file. (tempfile): Added 'global env', access to 'env' was bad, causing malfunction on windows. file: [0868ed56f3] check-in: [344e853073] user: andreas_kupries branch: trunk, size: 24782
2003-08-06
22:41
* fileutil.tcl (find): The fix for SF tcllib bug [647974] introduced a tcl command new to tcl 8.4. This command is [file system]. Changing the code to exclude dev/inode checking only for 8.4 and above. For versions of Tcl below 8.4. the fix is not required as they do not have virtual filesystem support. This fixes SF tcllib bug [784157]. file: [0c6f0e8577] check-in: [43d1ace0e6] user: andreas_kupries branch: trunk, size: 22734
17:01
* fileutil.man: Added documentation for the new 'install' command. * fileutil.tcl (::fileutil::install): Added 'install' command, which is similar in functionality to the Unix install command - it is basically file copy with some additional features. * fileutil.test: Added tests for 'install' fileutil command. file: [042973d188] check-in: [66cc1fa218] user: davidw branch: trunk, size: 20349
2003-07-09
01:48
Varname typo in new code. Fixed. file: [528ce3e5af] check-in: [474b850e58] user: andreas_kupries branch: trunk, size: 19324
2003-07-05
04:14
* Bumped version to 1.5.1 as this is a bug fix. Any bug fixes and more minor changes coming in the future do not have to bump the version number anymore until the next release. Only a major change warrants another bump before the release. * fileutil.tcl: Fixed SF tcllib bug [647974]. We now ignore device/inode information if the current path is in a virtual filesystem. We also assume now that VFS's do not support links, thus also obviating the need for the data, circles cannot occur. file: [05357dc31b] check-in: [91926162ca] user: andreas_kupries branch: trunk, size: 19334
2003-05-09
21:28
* sak.tcl (modules_mod): Fixed incorrect check. Caused first module to be reported as bogus although it isn't. * resolv.tcl (::resolv::init): Added missing [expr] bracing. * exif.tcl (::exif::makerNote): Added missing logical operator to if condition for field 34. Procheck report. * fileutil.tcl (::fileutil::tempfile): Braced [expr]. * ncgi.tcl (import_file): Brace [expr]. file: [9d815327fe] check-in: [a8b31454a5] user: andreas_kupries branch: trunk, size: 18870
2003-05-01
22:40
* modules/base64/base64.test: * modules/base64/uuencode.test: * modules/base64/yencode.test: Various fixes to fix the * modules/control/ChangeLog: testsuite for tcl versions * modules/control/do.test: from 8.2 to 8.5 * modules/csv/csv.test: * modules/dns/dns.test: * modules/fileutil/ChangeLog: * modules/fileutil/fileutil.man: * modules/fileutil/fileutil.tcl: * modules/fileutil/fileutil.test: * modules/math/combinatorics.test: * modules/math/math.test: * modules/mime/mime.test: * modules/ntp/time.test: * modules/pop3/pop3.test: * modules/pop3d/pop3d.test: * modules/pop3d/pop3d_dbox.test: * modules/pop3d/pop3d_udb.test: * modules/profiler/profiler.test: * modules/report/report.test: * modules/stooop/pkgIndex.tcl: * modules/stooop/stooop.test: * modules/struct/list.test: * modules/textutil/ChangeLog: * modules/textutil/expander.tcl: * modules/textutil/split.tcl: file: [b8d8d51fa5] check-in: [ed0a15a635] user: patthoyts branch: trunk, size: 18860
2003-04-24
01:19
* fileutil.man: * fileutil.tcl: Added command [tempfile]. Was part of tcllib patch 611595, but has a better place here. file: [aa8cd3033b] check-in: [2f8a3b0916] user: andreas_kupries branch: trunk, size: 18551
2003-04-21
23:00
Deleted: formatting fix merged from HEAD check-in: [63eb6bab9e] user: dgp branch: DEVELOPMENT, size: 0
2003-04-11
19:44
* fileutil.man: * fileutil.tcl: * pkgIndex.tcl: Set version of the package to to 1.5. file: [9f22992c6c] check-in: [285f37b6ed] user: andreas_kupries branch: trunk, size: 16693
2003-03-25
18:09
Typo fix and extended description for stripPwd. file: [15d7875e24] check-in: [99414d3c8c] user: andreas_kupries branch: trunk, size: 16693
05:10
* fileutil.tcl (fileutil::touch): Applied patch #688965 provided by Glenn Jackman <[email protected]>. This patch provides a better message when asking the [fileutil::touch] command for help. file: [fd48c3c97b] check-in: [8b756f583c] user: andreas_kupries branch: trunk, size: 16631
2003-03-24
23:11
* README: Updated to refer to the SF website for Tcllib. Thanks to Larry Virden <[email protected]> for the report and fix. [Bug #707607]. * fileutil.test: * fileutil.man: * fileutil.tcl: Fixed bug #707009, reported by Helmut Giese <[email protected]>, also updated the documentation and the testsuite. file: [45aaabf295] check-in: [00ea7618ee] user: andreas_kupries branch: trunk, size: 16546
2003-01-29
06:51
* fileutil.tcl (::fileutil::fileType): Use 'string match' instead of regexp. Require Tcl 8.2. file: [79e162deba] check-in: [ee453f878b] user: davidw branch: trunk, size: 16453
2002-10-28
17:22
Added Phil Ehrens copyright. file: [f71b59ddca] check-in: [a9035da1d7] user: andreas_kupries branch: trunk, size: 16401
2002-10-10
02:39
* fileutil.tcl: * fileutil.man: * fileutil.test: Accepted enhanced format detection by Philip Ehrens <[email protected]>. file: [4d752200ee] check-in: [1db5dd77ae] user: andreas_kupries branch: trunk, size: 16333
2002-05-21
17:44
* fileutil.tcl (cat): Fixed bug #556504, reported by Michael A. Cleverly <[email protected]>. The fix was provided by Michael too. The problem was reading files which are reported as size 0, but actually have content, just dynamically generated (Linux /proc is an example of an fs containing such files). file: [697245736b] check-in: [cea1ef35ea] user: andreas_kupries branch: trunk, size: 15478
2002-05-15
16:59
* fileutil.man: Documented the two new commands (stripN, stripPwd). * fileutil.tcl: Made up my mind about SF Bug #462015. The proposed interface change to [find] is rejected to keep the interface of the library procedure simple and without hidden surprises = KISS. Added a command [stripPwd] instead which can be used by the caller of [find] to make the returned paths relative to the current working directory. Also added [stripN] to strip a fixed number of elements from the beginning of a path. * pop3d_dbox.man: * pop3d_dbox.tcl: * pop3d_dbox.test: New method [destroy]. Extended documentation. Clarified interaction lock/remove and interaction lock/stat/(size/get/dele). Added checks of message ids in size, get, dele. Added general check of define base directory to all methods. Added testsuite. Bugfixes. Tcllib #532216. * pop3d_udb.man: * pop3d_udb.tcl: * pop3d_udb.test: Documented [destroy]. Fixed documentation of [lookup], refered to non-existing method [do]. Added [destroy] method. Added test suite. Tcllib #532216. file: [486447f802] check-in: [3d66dc5b24] user: andreas_kupries branch: trunk, size: 15191
2002-03-21
07:11
Added fileType function (with minor modification) as posted to comp.lang.tcl by Phil Ehrens. file: [3451667fba] check-in: [f383776e0b] user: ericm branch: trunk, size: 14174
2002-01-18
20:51
* Bumped version to 1.2, new release. Summary of changes here. See the individual Changelogs to see the detailed changes in each module. New modules: calendar, crc, doctools, irc, smtpd, and stooop. calendar: Version is 0.1 crc: Version is 1.0 doctools: Version is 1.0 irc: Version is 0.1 smtpd: Version is 1.0 stooop: Version is 4.3 Changed modules: base64, comm, control, csv, fileutil, ftp, html, math, mime, ncgi, nntp, pop3, struct, textutil, and uri. base64: Version stays @ 2.2, but got new subpackage. comm: Version up to 3.7.1 control: Version up to 0.2 csv: Version up to 0.2 fileutil: Version up to 1.3 ftp: Version up to 2.3 html: Version up to 1.2 math: Version up to 1.2 mime: Version up to 1.3.1 ncgi: Version up to 1.2.1 nntp: Version up to 0.2 pop3: Version up to 1.5.1 struct: Version up to 1.2 textutil: Version up to 0.4 uri: Version up to 1.1 file: [cf5cc57584] check-in: [e65c434567] user: andreas_kupries branch: trunk, size: 11092
2001-11-08
06:26
* examples/ftp/ftpvalid: New example, using ftp and uri modules. Validation of ftp urls. * fileutil: Accepted Patch #477805. * ftp: Accepted Patch #478478. * fileutil.test: * fileutil.n: * fileutil.tcl: Applied patch #477805 by Glenn Jackman <[email protected]> implementing the unix 'touch' command. Contains documentation and testsuite for the new command too. * ftp.tcl: Applied patch in #478478 to handle non-standard date information from servers with a buggy y2k patch. 2001 is rendered as 19101 (19*100 + 101 = 2001). file: [19f7b38799] check-in: [48234ec23e] user: andreas_kupries branch: trunk, size: 11092
2001-09-05
23:53
* base64.tcl: Restricted export list to public API. [456255]. Patch by Hemang Lavana <[email protected]> * counter.tcl: Restricted export list to public API. [456255]. Patch by Hemang Lavana <[email protected]> * csv.tcl: Restricted export list to public API. [456255]. Patch by Hemang Lavana <[email protected]> * fileutil.tcl: Restricted export list to public API. [456255]. Patch by Hemang Lavana <[email protected]> * ftpd.tcl: Restricted export list to public API. [456255]. Patch by Hemang Lavana <[email protected]> * log.tcl: Restricted export list to public API. [456255]. Patch by Hemang Lavana <[email protected]> * ncgi.tcl: Restricted export list to public API. [456255]. Patch by Hemang Lavana <[email protected]> * stats.tcl: Restricted export list to public API. [456255]. Patch by Hemang Lavana <[email protected]> file: [c9553b2829] check-in: [ca08947dd9] user: andreas_kupries branch: trunk, size: 9053
2001-08-24
17:01
2001-08-21 Andreas Kupries <[email protected]> * All of the changes below are related to tcllib Patch [449531] by Anselm Lingnau <[email protected]>. Instead of taking in the proposed highlevel 'fileinput' I added some of the more low-level commands from Tclx which can be used to create/compose 'fileinput'. * pkgIndex.tcl: Moved version of fileutil to 1.2. * fileutil.test: Added tests for the new commands. Moved version of fileutil to 1.2. * fileutil.n: Added documentation of the new commands. Moved version of fileutil to 1.2. * fileutil.tcl (findByPattern, foreachLine): New commands, modeled after TclX's 'recursive_glob' and 'for_file'. Moved version of fileutil to 1.2. 2001-08-24 Andreas Kupries <[email protected]> * tcllib/Makefile.in (check): Added target to report modules without testsuites and/or manpages. file: [c6ff370efe] check-in: [a1d3f08739] user: andreas_kupries branch: trunk, size: 9015
2001-08-02
16:38
Dgp writes: Here's a big patch that fixes many bugs dealing with what versions of what packages are in tcllib, and what versions of what packages they depend on. Bugs fixed by this patch are: 447038 447035 447033 447013 447012 447011 447010 232017 file: [538c80c927] check-in: [bb2c259d71] user: andreas_kupries branch: trunk, size: 6009
2001-06-22
15:29
Applied frink and procheck to tcllib and corrected the assorted problems found by these two static checkers. file: [76aa1bdfc1] check-in: [c2b80f0066] user: andreas_kupries branch: trunk, size: 5987
2001-03-26
16:50
2001-03-26 Andreas Kupries <[email protected]> * Makefile.in: Added module 'htmlparse'. 2001-03-23 Andreas Kupries <[email protected]> * textutil.tcl: Reworked the implementation of 'StrRepeat', made it much faster (used code from Pool_Base). Renamed to 'strRepeat' and exported. **Note** that the tcl implementation is one order of magnitude faster than [string repeat] for num >= 1000. * textutil.n: Added description of 'strRepeat'. * repeat.test: New file, tests 'strRepeat'. 2001-03-23 Andreas Kupries <[email protected]> * htmlparse.tcl: Changed the implementation to allow incremental processing (taken from plume, in essence). Interface is different too (more option oriented). Fixed errors in the conversion into a tree (nesting of <p>, <li> and <hxx> tags), through an internal postproessing step for the tree.. * htmlparse.n: Adapted documentstion to changes above. * htmlparse.test: Created testsuite. 2001-03-21 Andreas Kupries <[email protected]> * New module 'htmlparse', a HTML parser based upon Steve Uhler's venerable 'html_library' and some of my work in the book scanning project. 2001-03-21 Andreas Kupries <[email protected]> * Makefile.in: Added module 'log'. 2001-03-20 Andreas Kupries <[email protected]> * all.tcl: [Bug #410100, Patch #410105] Squashed a subtle bug with package management for the tests. Changes: all.tcl now adds the module path to the auto_path (the tested modules did it themselves before) and also moved the setting of the auto_path in the slave before the first 'package require'. Why ? Assume the old code, an installed fileutil 1.0 and a new fileutil 1.1 under development. The initialization of the tests scans the package directories and finds fileutil 1.0. The module then adds itself to the auto_path and then requires fileutil (without version). Now fileutil 1.0 is found by the pkg management, it is acceptable according to the rules of require and thus used. The new version is not considered at all, as changing the auto_path does *not* enforce a rescan of package directories. It is possible to solve the problem by having the modules require themselves and request a specific version (1.1 in this case). But this would mean that in each module we have (at least) one more file containing the version number (all test files!) and we have to maintain this for every module. The change here however solves the problem without touching the modules at all. 2001-03-20 Andreas Kupries <[email protected]> * New module 'log', a logging facility. file: [3b4e782c24] check-in: [f363c616e1] user: andreas_kupries branch: trunk, size: 5981
2000-06-02
18:43
Updated license info in module files to point to license.terms; added ftp library; moved module specific ChangeLog entries out of the tcllib ChangeLog and into the individual module ChangeLogs. file: [fdefc6fb0f] check-in: [8452aefd7a] user: ericm branch: trunk, size: 2935
2000-05-30
23:59
Updated copyright strings. file: [138b4bc4c0] check-in: [cd785e70e8] user: ericm branch: trunk, size: 2825
2000-03-10
22:59
* fileutil.test: * fileutil.tcl: Added cat function, duplicates standard UNIX "cat" utility. file: [51bb71b06b] check-in: [0894d2ea28] user: ericm branch: trunk, size: 2831
2000-03-01
23:26
Added: *** empty log message *** file: [87b810c6a2] check-in: [75398228dd] user: ericm branch: trunk, size: 2269