Yes, this is a bug.

After some glancing, this is a quick fix:

diff --git a/src/interp/i-syscmd.boot b/src/interp/i-syscmd.boot
index eca9f345..22bf47b0 100644
--- a/src/interp/i-syscmd.boot
+++ b/src/interp/i-syscmd.boot
@@ -2461,9 +2461,9 @@ processSynonymLine line ==
       line := dropLeadingBlanks line
       mx := MAXINDEX line
       for i in 0..mx repeat
-        line.i = " " =>
+        line.i = char '" " =>
           return (for j in (i+1)..mx repeat
-            line.j ~= " " => return (SUBSTRING (line, j, nil)))
+            line.j ~= char '" " => return (SUBSTRING (line, j, nil)))
   [key, :value]



I need a deeper look into this.  Seems that "synonymSpad2Cmd" is dead
code compared with "npProcessSynonym".

- Qian

On 1/21/24 16:11, Fabian Hassler wrote:
I have problems getting the command )synonym working. Most likely, I am
just interpreting the documentation wrong.

As an example: if I execute `)synonym pwd system pwd` then )pwd appears in
the list of synonyms whoever the body is empty. Also executing )pwd gives
the error `Your argument list is not valid.`


--
You received this message because you are subscribed to the Google Groups "FriCAS - 
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/e0b8369d-17b8-4580-bbd1-492006733ad1%40gmail.com.

Reply via email to