On Sun, May 22, 2005 at 07:44:36PM +0200, Ralf Treinen wrote: > I cannot reproduce the bug you describe. On my machine, typing > "1+1<return>" in an axiom session of texmacs works fine. It looks > like this: > > -> 1+1 (1) > 2 Type: PositiveInteger > > -> > > I have the same versions of texmacs (1.0.5-2) and axiom (20050201-1) > as you.
This is the correct behaviour, but it is not what I get. Are you sure
you're not getting a non-Debian version of texmacs or axiom?
What happens when you run 'axiom -noclef' and enter '1+1'? This is
what I got:
------------------------------ Snip ------------------------------
[EMAIL PROTECTED]:~$ axiom -noclef
GCL (GNU Common Lisp) 2.6.6 CLtL1 Jan 18 2005 00:13:38
Source License: LGPL(gcl,gmp), GPL(unexec,bfd)
Binary License: GPL due to GPL'ed components: (READLINE BFD UNEXEC)
Modifications of this banner must retain notice of a compatible license
Dedicated to the memory of W. Schelter
Use (help) to get some basic information on how to use GCL.
AXIOM Computer Algebra System
Version: Axiom 3.0 Beta (February 2005)
Timestamp: Monday February 21, 2005 at 20:01:15
-----------------------------------------------------------------------------
Issue )copyright to view copyright notices.
Issue )summary for a summary of useful system commands.
Issue )quit to leave AXIOM and return to shell.
-----------------------------------------------------------------------------
Re-reading compress.daase Re-reading interp.daase
Re-reading operation.daase
Re-reading category.daase
Re-reading browse.daase
(1) ->
(1) -> 1+1
(1) ->
(1) 2
Type: PositiveInteger
(2) -> )quit
Please enter y or yes if you really want to leave the interactive
environment and return to the operating system:
y
[EMAIL PROTECTED]:~$
------------------------------ Snip ------------------------------
Note the repeated prompts, which are what confuses tm_axiom on my
system. Note that the timestamp in this output agrees with the Debian
version number.
> What strikes me with your patch
>
> - execlp("AXIOMsys","AXIOMsys","-noclef",0);
> + execlp("AXIOMsys","AXIOMsys","-noclef","-noht","-nogr",0);
>
> is that I use a patch which replaces the call to AXIOMsys by a call
> to /usr/bin/axiom. Hence, applying your patch makes compilation
> of the debian package fail. Are you sure you are working with the
> debian packages of texmacs and axiom?
Indeed, this is my mistake: I used the source I got from 'apt-get
source', which is not the patched source. Here's a trivially
different patch that works for me:
----------------------------------------------------------------------
--- tm_axiom.c.orig 2005-05-22 22:28:30.000000000 -0400
+++ tm_axiom.c 2005-05-22 22:28:54.000000000 -0400
@@ -299,7 +299,7 @@
case 0: /* Axiom */
dup2(p1[1],1); close(p1[1]); close(p1[0]);
dup2(p2[0],0); close(p2[0]); close(p2[1]);
- execlp("/usr/bin/axiom","/usr/bin/axiom","-noclef",0);
+ execlp("/usr/bin/axiom","/usr/bin/axiom","-noclef","-noht","-nogr",0);
fatal("exec /usr/bin/axiom");
default: /* parent */
close(p1[1]); close(p2[0]);
----------------------------------------------------------------------
(In fact, '/usr/bin/axiom' and '/usr/bin/AXIOMsys' seem to be the same
file.)
Peace,
Dylan
signature.asc
Description: Digital signature

