On Sun, 03 Oct 1999 10:57:42 -0400, Yang Dehua wrote:
>[EMAIL PROTECTED] wrote:
>> Yang Dehua <[EMAIL PROTECTED]> wrote:
>>
>> > >
>> > > > 132 +++ rc = stream('chkconfig.sed', 'c', 'seek +'size);
>> > > > REX0026: Error 26 running G:\xfree86\lib\x11\lyx\configure.cmd, line
>> > > >132:
>> > > > Invalid whole number
>> > > >
>> > >
>> > > You are missing a correctly installed sed.exe.
>> >
>> > I checked my system and the sed was installed and in the path. which version and
>where
>> > should it be installed?
>>
>> Of course REXX0026 has nothing to do with sed installation. Otherwise
>> you should have receive SYS0041 instead. And I presume you are running
>> procedual REXX rather than Object REXX, since you didn't get REXX0040.
>> Please modify the line as
>> say size;'cmd/c dir chkconfig.sed'; rc = stream('chkconfig.sed', 'c', 'seek +'size);
>> and report the result. It seems like a bug in REXX interpreter.
>> I need enough information to circumvent it.
>>
>
>I solved the problems by configuring emtex and LyX, perhaps these problems have
>nothing to
>do with my sed or REXX, though they seem to.
I could reproduce the problem of the chinese user after installing the
new version to Xfree86 tree. Interestingly I couldn't figure out yet
the reason.
-------------------
...
No pages of output.
Transcript written on wrap_chkconfig.log.
147 +++ rc = stream('chkconfig.sed', 'c', 'seek + 'size'
write');
REX0026: Error 26 running D:\XFree86\lib\X11\lyx\configure.cmd, line
147:
Invalid whole number
script = D:\XFree86\lib\X11\lyx\configure.cmd
....
----------------
With the following debug code it's running:
---
/* if rxfuncquery(SysAddRexxMacro) then */
rc=stream('chkconfig.sed','c','seek +'size)
/* else
rc=stream('chkconfig.sed','c','seek + 'size' write') */
say size;'cmd/c dir chkconfig.sed';
---
Output:
....
No pages of output.
Transcript written on wrap_chkconfig.log.
1394
[31;40;1mMo. 11.10.1999[0m: [33;40;1m14.29.08,89 Uhr
[32;40m[1m[D:\XFree86\lib\X11\lyx][0m
cmd/c dir chkconfig.sed
Datenträger, Laufwerk D, hat den Namen OS2.
Datenträgernummer ist 2740:E814
Verzeichnis von D:\XFree86\lib\X11\lyx
11.10.99 14.29 1394 0 chkconfig.sed
1 Datei(en) 1394 Byte belegt
821056512 Byte frei
creating doc/LaTeXConfig.lyx
[31;40;1mMo. 11.10.1999[0m: [33;40;1m14.29.09,12 Uhr
[32;40m[1m[D:\XFree86\lib\X11\lyx][0m
sed -f chkconfig.sed D:/XFree86/lib/X11/lyx/doc/LaTeXConfig.lyx.in
1>doc\LaTeXConfig.lyx
creating lyxrc.defaults
--------------
I don't actually understand what this line is doing.
(as usual some comments in the code never hurt ;-), but this is a
problem of the whole LyX source:
People write extensions, fixes and always forget that comments in a
large project with many rapidly changing contributors are meant for
'novices', should explain the design and concepts, and should be more
extensive - and in fact are on the long run much more important - than
the actual code):
rc=stream('chkconfig.sed','c','seek + 'size' write')
Nevertheless ' write' fails. So I'm unsure what to do for the release
here.
Regards,
Arnd