par2 is able to search the files matching a "wildcard" string given on the
commandline. This is not documented but I noticed it while I was trying to
modify the source code. Thus:
* It is possible to use par2 with any set of files, contrary to what was
said in the previous email (for example by specifying '*' in the directoery
where only the files concerned are)
* This is not always practical and it would still be nice to be able to
specify a long explicit list of files (for example for use in a script).
* The wildcard matching is neither documented nor mentioned anywhere as far
as I know. The usage message should mention it (it is displayed by the
function CommandLine::usage defined in the file commandline.cpp) as well as
the man page, since the feature can lead to an unexpected behaviour if a
file name specified on the command line unintentionaly contains a wildcard
character.
* The matching behave in a rather strange way as the following example shows
(`file' is not matched!). The wildcard matching is done by the function
DiskFile::FindFiles defined in the file diskfile.cpp. It should be either
documented thoroughly or behave as if the matching was done by the bash
shell itself.
|~$ mkdir par && cd par
|par$ for i in file file\* file2; do dd count=1024 if=/dev/zero of=$i; done
1024+0 Datensätze ein
1024+0 Datensätze aus
524288 bytes transferred in 0,012415 seconds (42230075 bytes/sec)
1024+0 Datensätze ein
1024+0 Datensätze aus
524288 bytes transferred in 0,008623 seconds (60801606 bytes/sec)
1024+0 Datensätze ein
1024+0 Datensätze aus
524288 bytes transferred in 0,016166 seconds (32431334 bytes/sec)
|par$ par2 c par.par2 file\*
par2cmdline version 0.4, Copyright (C) 2003 Peter Brian Clements.
par2cmdline comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it and/or modify
it under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version. See COPYING for details.
Block size: 524
Source file count: 2
Source block count: 2002
Redundancy: 5%
Recovery block count: 100
Recovery file count: 7
Opening: file*
Opening: file2
Computing Reed Solomon matrix.
Constructing: done.
Wrote 52400 bytes to disk
Writing recovery packets
Writing verification packets
Done
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]