Hello Waldek,

Sorry for being so late, holidays and co.

Yes you're right, OBEY is used at several places, for file operations
essentially. I do not want to say remove it completely but basically from
my point of view it should only be used for the ')sys' command. The user
has to know the basic commands available on his OS of course.

I will try to explain the suggested modification later, festivities
obliged.

The aim to use SBCL on Windows is to have at the end a native Windows
application. That's FriCAS relies only on msvcrt.dll, which need kernel32
etc...

Not only Linux.

I mean that.

Cheers

--

Greg

Le 8 sept. 2016 21:11, "Waldek Hebisch" <[email protected]> a écrit :

> >
> > I just did a fresh checkout of r2100 and everything went fine except line
> > 754-762 :
> > ===================================================
> > #+:sbcl
> > (defun OBEY (S)
> >    #-:win32 (sb-ext::process-exit-code
> >              (sb-ext::run-program "/bin/sh"
> >                     (list "-c" S) :input t :output t :error t))
> >    #+:win32 (sb-ext::process-exit-code
> >              (sb-ext::run-program (make-absolute-filename
> "/lib/obey.bat")
> >                     (list S) :input t :output t :error t))
> > )
> > ===================================================
> >
> > As in the past the OBEY command with the offending obey.bat file is
> > problematic on Windows. Personally, since the bin directory of MSYS is in
> > the PATH, I use :
> >
> > =====================================================
> > (defun OBEY (S)
> >    #-:win32 (sb-ext::process-exit-code
> >              (sb-ext::run-program "/bin/sh"
> >                     (list "-c" S) :input t :output t :error t))
> >    #+:win32 (sb-ext::process-exit-code
> >          (sb-ext::run-program "sh.exe" (list "-c" S) :input t :output t
> > :error t :search t))
> > )
> > ======================================================
> >
> > Of course there isn't any "legacy" path for executables on Windows so I
> use
> > the ':search t' option. This is not a big problem for information, this
> to
> > sort temp.text in br-data.boot.
> > I will not exhaustively search where and why OBEY routine is used in
> FriCAS
> > to see which shell command it use, I think this routine should be removed
> > of FriCAS.
>
> Do you mean completely remove this routine?  Or replace by your version.
> OBEY has several uses.  Basically, most operation on files needs
> OBEY.  In the past compilation used it too (to preform file operations),
> but now we have a C version of corresponding operations.  Still
> a lot of things will break without OBEY.
>
> --
>                               Waldek Hebisch
>
> --
> 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 post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/fricas-devel.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to