>> Process fricas exited abnormally with code 1

> Is this the correct syntax for error stream redirection
> in tcsh? I know it is for the bash, but as far as I have
> heard, the shells are quite different when it comes to I/O.

As you have seen emacs lisp starts fricas. I've no idea what it is
actually doing, and, in fact, I've no idea why Martin Rubey has chosen
to use start-process-shell-command. That seems to start a shell and from
that shell call fricas. I wonder whether one can perhaps start fricas
without this extra shell.

Furthermore, maybe start-process-shell-command does not support
redirecting stderr. I am unable to extract it from the specification at
http://www.gnu.org/software/emacs/manual/html_node/elisp/Asynchronous-Processes.html
.

So maybe we should have a small shell script "fricas-no-stderr"

---------------------
#!/bin/sh
exec /path/to/fricas -noclef 2>/dev/null
---------------------

and in fricas.el use

--------------------------
(defun fricas-run ()
  "Run FriCAS in the current BUFFER."
  (message "Starting FriCAS...")
  (start-process-shell-command "fricas" (current-buffer)
    "/path/to/fricas-no-stderr"))
--------------------------

I've just tested it. Works with both /bin/bash and /bin/tcsh in my
/etc/passwd entry.

BTW, look at section "1. FILE DESCRIPTORS". It seems that by incident I
discovered a bug in fricas.el.

If I get some confirmation that my fix above is the way to go, I will
clean-up an provide a patch tomorrow. I somehow don't like to
introduction of this little script "fricas-no-stdout", but I haven't yet
found a more elegant way.

Ralf

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en.

Reply via email to