I've now tried it again after removing this 2>&1 in the line 784 (i.e. now it's just `$cmd`), and now the libmanager seems to work - no more error messages.
This is what I get when I run it:
C:\Temp>wp34s_lib -ilib wp34s-lib.dat -cat
Initial library catalogue (format: flash file)
Source: wp34s-lib.dat, Program name: PF, Line number: 1
Source: wp34s-lib.dat, Program name: TVM, Line number: 31
Source: wp34s-lib.dat, Program name: TRI, Line number: 293
Library details:
// WP 34S assembly preprocessor enabled: '-pp'
// Opcode map source: wp34s.op (local directory)
// Opcode SVN version: -- unknown --
// Running WP 34S preprocessor from: wp34s_pp.exe
// WP 34s version: 30
// CRC16: EA42
// Running in V3 Lib-mode. Max words: 4094
// Total words: 596
// Total steps: 575
Edit: I've now also tried the other 2 main functions of the libmanager (adding and removing a file to/from the library) and both functions seem to work fine. :-)
There's only one thing that confuses me a bit: if I create a library from a few files which are together larger than about 520 steps, then the displayed CRC of the asm is different from the CRC which lib -cat shows!?
(and there's difference in the asm CRC between creating the lib.dat file with or without the option -lib)
Here's an example:
C:\TEMP>wp34s_asm TVM.wp34s TRIGON.wp34s -o Test.dat -lib
// Opcode map source: wp34s.op (local directory)
// Opcode SVN version: -- unknown --
// WP 34s version: 30
// CRC16: C1BB
// Running in V3 Lib-mode. Max words: 4094
// Total words: 565
// Total steps: 545
C:\TEMP>wp34s_lib -ilib Test.dat -no_pp -cat
Initial library catalogue (format: flash file)
Source: Test.dat, Program name: TVM, Line number: 1
Source: Test.dat, Program name: TRI, Line number: 263
Library details:
// Opcode map source: wp34s.op (local directory)
// Opcode SVN version: -- unknown --
// WP 34s version: 30
// CRC16: 43C0
// Running in V3 Lib-mode. Max words: 4094
// Total words: 565
// Total steps: 545
This does not happen for a single file or if the files don't go beyond this 520 step limit. I'm not sure if this is normal or if it's another problem?
Edited: 2 Jan 2012, 12:28 p.m.