fix eof detection problems when running as shell script - gcl.git - GNU Common Lisp

index : gcl.git
GNU Common Lisp
summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamm Maguire <camm@debian.org>2014年08月29日 17:48:48 -0400
committerCamm Maguire <camm@debian.org>2014年08月29日 17:48:48 -0400
commit88bed48a163c0290b682e7cc1960c8499bee5bed (patch)
treee54b1f734a61fc2cf2b323f16963d699c0f648c5
parent9f29dfef37fe7227900b0a19affe7cc2f2da7fc6 (diff)
downloadgcl-88bed48a163c0290b682e7cc1960c8499bee5bed.tar.gz
fix eof detection problems when running as shell script
Diffstat
-rwxr-xr-xgcl/lsp/gcl_top.lsp 4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcl/lsp/gcl_top.lsp b/gcl/lsp/gcl_top.lsp
index fb53216ff..7a17d7903 100755
--- a/gcl/lsp/gcl_top.lsp
+++ b/gcl/lsp/gcl_top.lsp
@@ -779,8 +779,8 @@ First directory is checked for first name and all extensions etc."
(defun do-f (file &aux *break-enable*)
(catch *quit-tag*
- (labels ((read-loop (st &aux (tem (read st nil 'eof))) (when (eq tem 'eof) (bye)) (eval tem) (read-file st))
- (read-file (st) (read-line st) (read-loop st)))
+ (labels ((read-loop (st &aux (tem (read st nil 'eof))) (when (eq tem 'eof) (bye)) (eval tem) (read-loop st))
+ (read-file (st) (read-line st nil 'eof) (read-loop st)))
(if file
(with-open-file
(st file)
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月05日 08:59:40 +0000

AltStyle によって変換されたページ (->オリジナル) /