Re: Starting FriCAS not in the $HOME directory

GrĂ©gory Vanuxem <[email protected]> Sun, 25 May 2025 14:53:17 +0200
Newsgroups gmane.comp.mathematics.algebra.fricas.devel,gmane.lisp.gcl.devel
Message-ID <CAHnU2dZs=gGs0e5OxtOC694GR4Dgr8VMYNmtukCN9_5sJv=0JQ@mail.gmail.com>
--0000000000004af2650635f55114
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello,

Le sam. 24 mai 2025, 18:41, Waldek Hebisch <[email protected]> a =C3=A9crit =
:

> On Sat, May 24, 2025 at 06:14:40PM +0200, Gr=C3=A9gory Vanuxem wrote:
> > Hi Waldek,
> >
> > Many thanks for this quick response and fix. Just tested on official
> FriCAS
> > and the 2 problems you mentioned previously gone away.
> >
> > 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 times
> and
> > augmenting line length of output to 110. Maybe this is related to my Ka=
li
> > distribution on WSL2, I don't know.
> >
> > The )read command is to blame on my settings:
> >
> > (1) -> )sys pws
> >
> >    >> 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
> >
> > (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
> >
> >    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) ->
>
> 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_pathn=
ame-_name-version.html#pathname-type

It's a good thing to know for Camm since apparently he is working on
several things and will add some suggestions for macOS from Chun Tian from
what I have understood so I think it will fix that.

- Greg

--=20
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 e=
mail to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/fricas-deve=
l/CAHnU2dZs%3DgGs0e5OxtOC694GR4Dgr8VMYNmtukCN9_5sJv%3D0JQ%40mail.gmail.com.

--0000000000004af2650635f55114
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div>Hello,=C2=A0<br><br><div class=3D"gmail_quote"><div =
dir=3D"ltr" class=3D"gmail_attr">Le sam. 24 mai 2025, 18:41, Waldek Hebisch=
 &lt;<a href=3D"mailto:[email protected]" target=3D"_blank" rel=3D"noreferre=
r">[email protected]</a>&gt; a =C3=A9crit=C2=A0:<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex">On Sat, May 24, 2025 at 06:14:40PM +0200, Gr=C3=A9gory Vanuxe=
m wrote:<br>
&gt; Hi Waldek,<br>
&gt; <br>
&gt; Many thanks for this quick response and fix. Just tested on official F=
riCAS<br>
&gt; and the 2 problems you mentioned previously gone away.<br>
&gt; <br>
&gt; The .fricas.input file is still not &quot;read&quot; but for my mid-te=
rm work it is<br>
&gt; not a big problem, my startup file is just displaying computation time=
s and<br>
&gt; augmenting line length of output to 110. Maybe this is related to my K=
ali<br>
&gt; distribution on WSL2, I don&#39;t know.<br>
&gt; <br>
&gt; The )read command is to blame on my settings:<br>
&gt; <br>
&gt; (1) -&gt; )sys pws<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 &gt;&gt; System error:<br>
&gt;=C2=A0 =C2=A0 INTERNAL-SIMPLE-ERROR: The assertion !posix_spawnp(&amp;p=
id, *p1,<br>
&gt; &amp;file_actions, &amp;attr, (void *)p1, environ) on line 65 of o/uni=
xsys.c in<br>
&gt; function vsystem failed: No such file or directory<br>
&gt; <br>
&gt; (1) -&gt; )sys pwd<br>
&gt; /home/greg<br>
&gt; (1) -&gt; )sys ls -l .fricas.input<br>
&gt; -rw-r--r-- 1 greg greg 35 Feb 11 09:42 .fricas.input<br>
&gt; (1) -&gt; )read .fricas.input<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 The file .fricas.input is needed but does not exist.<br>
<br>
AFAICS the problem is due to PATHNAME-TYPE in gcl:<br>
<br>
)lisp (PATHNAME-TYPE &quot;/home/hebisch/.fricas.input&quot;)<br>
<br>
Value =3D &quot;fricas.input&quot;<br>
(1) -&gt; <br>
<br>
All other Lisp implementations that we use return &quot;input&quot;.</block=
quote></div></div><div dir=3D"auto"><br></div><div dir=3D"auto">Yes and thi=
s is required by CLHS from what I have read:</div><div dir=3D"auto"><br></d=
iv><div dir=3D"auto"><a href=3D"http://www.ai.mit.edu/projects/iiip/doc/Com=
monLISP/HyperSpec/Body/fun_pathname-_name-version.html#pathname-type" targe=
t=3D"_blank" rel=3D"noreferrer">http://www.ai.mit.edu/projects/iiip/doc/Com=
monLISP/HyperSpec/Body/fun_pathname-_name-version.html#pathname-type</a></d=
iv><div dir=3D"auto"><br></div><div dir=3D"auto">It&#39;s a good thing to k=
now for Camm since apparently he is working on several things and will add =
some suggestions for macOS from Chun Tian from what I have understood so I =
think it will fix that.=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"=
auto">- Greg</div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;FriCAS - computer algebra system&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">fricas=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
fricas-devel/CAHnU2dZs%3DgGs0e5OxtOC694GR4Dgr8VMYNmtukCN9_5sJv%3D0JQ%40mail=
.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.co=
m/d/msgid/fricas-devel/CAHnU2dZs%3DgGs0e5OxtOC694GR4Dgr8VMYNmtukCN9_5sJv%3D=
0JQ%40mail.gmail.com</a>.<br />

--0000000000004af2650635f55114--