Re: [fricas-devel] Starting FriCAS not in the $HOME directory
Camm Maguire <[email protected]> Thu, 29 May 2025 16:28:45 -0400
| Newsgroups | gmane.lisp.gcl.devel,gmane.comp.mathematics.algebra.fricas.devel |
|---|---|
| Message-ID | <[email protected]> |
Greetings, and thanks again! From my reading of the spec GCL's parsing of the pathname-type is compliant. It also passes Paul Dietz' test suite. If this is causing difficulties it would be great if someone could post the failing lisp code. There are advantages to not allowing '.' in pathname-name. Take care, Gr=C3=A9gory Vanuxem <[email protected]> writes: > Hello,=20 > > Le sam. 24 mai 2025, 18:41, Waldek Hebisch <[email protected]> a =C3=A9cri= t : > > On Sat, May 24, 2025 at 06:14:40PM +0200, Gr=C3=A9gory Vanuxem wrote: > > Hi Waldek, > >=20 > > Many thanks for this quick response and fix. Just tested on official F= riCAS > > and the 2 problems you mentioned previously gone away. > >=20 > > The .fricas.input file is still not "read" but for my mid-term work it= is > > not a big problem, my startup file is just displaying computation time= s and > > augmenting line length of output to 110. Maybe this is related to my K= ali > > distribution on WSL2, I don't know. > >=20 > > The )read command is to blame on my settings: > >=20 > > (1) -> )sys pws > >=20 > > >> System error: > > INTERNAL-SIMPLE-ERROR: The assertion !posix_spawnp(&pid, *p1, > > &file_actions, &attr, (void *)p1, environ) on line 65 of o/unixsys.c in > > function vsystem failed: No such file or directory > >=20 > > (1) -> )sys pwd > > /home/greg > > (1) -> )sys ls -l .fricas.input > > -rw-r--r-- 1 greg greg 35 Feb 11 09:42 .fricas.input > > (1) -> )read .fricas.input > >=20 > > The file .fricas.input is needed but does not exist. > > AFAICS the problem is due to PATHNAME-TYPE in gcl: > > )lisp (PATHNAME-TYPE "/home/hebisch/.fricas.input") > > Value =3D "fricas.input" > (1) ->=20 > > All other Lisp implementations that we use return "input". > > Yes and this is required by CLHS from what I have read: > > http://www.ai.mit.edu/projects/iiip/doc/CommonLISP/HyperSpec/Body/fun_pat= hname-_name-version.html#pathname-type > > It's a good thing to know for Camm since apparently he is working on seve= ral things and will add some suggestions for macOS from Chun Tian from what= I have > understood so I think it will fix that.=20 > > - Greg --=20 Camm Maguire [email protected] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D "The earth is but one country, and mankind its citizens." -- Baha'u'llah