From: <ol...@cs...> - 2005-09-16 22:10:06
|
dribble behaves differently between clisp-2.33.2 and clisp-2.35. E.g., give the command % clisp -q -i init.lisp -x '(test)' where init.lisp contains only (defun test () (delete-file "zz") (dribble "zz") (format t "hi~%") (dribble)) For clisp-2.33.2, all output goes to the file zz, which I think is the correct behavior. For clisp-2.35, the "hi" comes to the screen and zz contains only the start and finish of dribble lines, e.g., ;; Dribble of #<IO TERMINAL-STREAM> started 2005-09-16 14:26:53 ;; Dribble of #<IO TERMINAL-STREAM> finished 2005-09-16 14:26:53 When I run either clisp interactively with % clisp -q -i init.lisp and type (test), the output goes to file zz and the screen. Is the above difference in behavior a bug or is dribble's behavior implementation dependent? I saw this same difference on two systems: pi: Red Hat Enterprise Linux WS release 3 (Taroon Update 5) Linux pi 2.4.21-32.0.1.ELsmp #1 SMP Tue May 17 17:52:23 EDT 2005 i686 i686 i386 GNU/Linux pc18: Fedora Core release 4 (Stentz) Linux pc18 2.6.12-1.1447_FC4smp #1 SMP Fri Aug 26 20:57:13 EDT 2005 i686 i686 i386 GNU/Linux clisp version info is below. Thanks. ---------------------------------------------------------------------- PI% clisp --version WARNING: *FOREIGN-ENCODING*: reset to ASCII GNU CLISP 2.33.2 (2004-06-02) (built 3296832306) (memory 3296832415) Software: GNU C 3.2.3 20030502 (Red Hat Linux 3.2.3-34) ANSI C program Features: (CLOS LOOP COMPILER CLISP ANSI-CL COMMON-LISP LISP=CL INTERPRETER SOCKETS GENERIC-STREAMS LOGICAL-PATHNAMES SCREEN FFI GETTEXT UNICODE BASE-CHAR=CHARACTER PC386 UNIX) Installation directory: /home/olsson/pkg/clisp/lib/clisp/ User language: ENGLISH Machine: I686 (I686) pi.cs.ucdavis.edu [169.237.6.50] ---------------------------------------------------------------------- PI% clisp --version GNU CLISP 2.35 (2005-08-29) (built 3335818953) (memory 3335819181) Software: GNU C 3.2.3 20030502 (Red Hat Linux 3.2.3-52) gcc -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O2 -fexpensive-optimizations -DUNICODE -DDYNAMIC_FFI -I. -x none libcharset.a libavcall.a libcallback.a -lreadline -lncurses -ldl -L/usr/local/lib -lsigsegv -lc -L/usr/X11R6/lib -lX11 SAFETY=0 HEAPCODES LINUX_NOEXEC_HEAPCODES GENERATIONAL_GC SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY Features: (REGEXP SYSCALLS I18N LOOP COMPILER CLOS MOP CLISP ANSI-CL COMMON-LISP LISP=CL INTERPRETER SOCKETS GENERIC-STREAMS LOGICAL-PATHNAMES SCREEN FFI GETTEXT UNICODE BASE-CHAR=CHARACTER PC386 UNIX) C Modules: (clisp i18n syscalls regexp) Installation directory: /home/olsson/pkg/clisp/lib/clisp/ User language: ENGLISH Machine: I686 (I686) pi.cs.ucdavis.edu [169.237.6.50] ---------------------------------------------------------------------- pc18:dribble [15] clisp --version GNU CLISP 2.33.2 (2004-06-02) (built 3335895841) (memory 3335895933) Software: GNU C 4.0.1 20050727 (Red Hat 4.0.1-5) ANSI C program Features: (CLOS LOOP COMPILER CLISP ANSI-CL COMMON-LISP LISP=CL INTERPRETER SOCKETS GENERIC-STREAMS LOGICAL-PATHNAMES SCREEN FFI GETTEXT UNICODE BASE-CHAR=CHARACTER PC386 UNIX) Installation directory: /home/olsson/pkg/clisp/lib/clisp/ User language: ENGLISH Machine: I686 (I686) pc18.cs.ucdavis.edu [169.237.5.62] ---------------------------------------------------------------------- pc18:~ [8] clisp --version GNU CLISP 2.35 (2005-08-29) (built on hammer2.fedora.redhat.com) Software: GNU C 4.0.1 20050727 (Red Hat 4.0.1-5) gcc -W -Wswitch -Wcomment -Wpointer-arith -falign-functions=4 -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O2 -fexpensive-optimizations -DUNICODE -DDYNAMIC_FFI -I. -x none libcharset.a libavcall.a libcallback.a /usr/lib/libreadline.so -lncurses -ldl -L/usr/lib -lsigsegv -L/usr/lib -lc -L/usr/X11R6/lib -lX11 SAFETY=0 HEAPCODES LINUX_NOEXEC_HEAPCODES GENERATIONAL_GC SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY Features: (REGEXP SYSCALLS I18N LOOP COMPILER CLOS MOP CLISP ANSI-CL COMMON-LISP LISP=CL INTERPRETER SOCKETS GENERIC-STREAMS LOGICAL-PATHNAMES SCREEN FFI GETTEXT UNICODE BASE-CHAR=CHARACTER PC386 UNIX) C Modules: (clisp i18n syscalls regexp) Installation directory: /usr/lib/clisp/ User language: ENGLISH Machine: I686 (I686) pc18.cs.ucdavis.edu [169.237.5.62] |