According to the reference manual
http://www.gap-system.org/Manuals/doc/htm/ref/CHAP003.htm#SECT004
GAP will look for .gaprc in the home directory. I don't know how to change this
(or if it can be changed) but Steve Linton does.
I also don't quite understand the original poster's issue. Did he try to
create a color prompt using a modified .gaprc? If so, I think that can
be tricky.
>
> Cheers,
>
> Michael
> >
>
David,
Can you ask on the Gap devel list and get back to us?
We could change gap if necessary.
William
>
>
>
>
>>
>> Cheers,
>>
>> Michael
>> >
>>
>
> >
>
--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org
There's a command line option for this; From GAP man page:
-r disable/enable reading of the '.gaprc' file
> I also don't quite understand the original poster's issue. Did he try to
> create a color prompt using a modified .gaprc? If so, I think that can
> be tricky.
I have a modified .gaprc to have a color prompt when using standalone
GAP in a terminal, this GAP (4.4.10) I've installed from a binary Debian
package before I got Sage.
Thanks for reading
--
Matthias
Could you try changing line 169 of gap.py from
gap_cmd = "gap"
to
gap_cmd = "gap -r"
then restart sage typing at the command line
sage -br
and see if that works. If so, open a trac ticket and post
this one-line change as a patch.
William
>
>> I also don't quite understand the original poster's issue. Did he try to
>> create a color prompt using a modified .gaprc? If so, I think that can
>> be tricky.
>
> I have a modified .gaprc to have a color prompt when using standalone
> GAP in a terminal, this GAP (4.4.10) I've installed from a binary Debian
> package before I got Sage.
>
> Thanks for reading
> --
> Matthias
>
>
> >
>
--
I've added the -r option to gap_cmd, and run sage with -br options; The
problem is still there.
To get rid of the problem I have to remove the file .gaprc, then rebuild
the GAP spkg. Finaly I can get my .gaprc back, everything will work
fine:
- Sage won't be confused by garbage in GAP output ;
- a standalone GAP will have a colored prompt.
--
Matthias
Actually that one line patch above probably did fix things, but it
didn't reset the cached gap workspace. All the stuff you did
above just had the impact of reseting the cached gap workspace.
You could also do this by deleting $HOME/.sage/gap
William
I see. I was not aware of this. After removing $HOME/.sage/gap it works!!
Thanks a lot!
--
Matthias