quicklisp-client icon indicating copy to clipboard operation
quicklisp-client copied to clipboard

Check for custom init file name on SBCL. For `(ql:add-to-init-file)`

Open sebastiancarlos opened this issue 8 months ago • 1 comments

$ sbcl
This is SBCL 2.5.0, an implementation of ANSI Common Lisp...
* (ql:add-to-init-file)
I will append the following lines to #P"/home/urmom/.sbclrc":
...

$ cat ~/.config/sbcl/sbclrc
(setf sb-ext:*userinit-pathname-function*
      (lambda () "~/.config/sbcl/sbclrc"))
 
$ sbcl --userinit ~/.config/sbcl/sbclrc
This is SBCL 2.5.0, an implementation of ANSI Common Lisp...
* (ql:add-to-init-file)
I will append the following lines to #P"~/.config/sbcl/sbclrc":
...

sebastiancarlos avatar Mar 25 '25 17:03 sebastiancarlos

This won't work - you can't refer to sb-ext directly like that.

On Tue, Mar 25, 2025 at 1:51 PM Sebastian Carlos @.***> wrote:

$ sbcl This is SBCL 2.5.0, an implementation of ANSI Common Lisp...* (ql:add-to-init-file) I will append the following lines to #P"/home/urmom/.sbclrc": ...

$ cat ~/.config/sbcl/sbclrc (setf sb-ext:userinit-pathname-function (lambda () "~/.config/sbcl/sbclrc"))

$ sbcl --userinit ~/.config/sbcl/sbclrc This is SBCL 2.5.0, an implementation of ANSI Common Lisp...* (ql:add-to-init-file) I will append the following lines to #P"~/.config/sbcl/sbclrc": ...


You can view, comment on, or merge this pull request online at:

https://github.com/quicklisp/quicklisp-client/pull/236 Commit Summary

File Changes

(1 file https://github.com/quicklisp/quicklisp-client/pull/236/files)

Patch Links:

  • https://github.com/quicklisp/quicklisp-client/pull/236.patch
  • https://github.com/quicklisp/quicklisp-client/pull/236.diff

— Reply to this email directly, view it on GitHub https://github.com/quicklisp/quicklisp-client/pull/236, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACPNLO7LSGYFZBHB5AR5VT2WGJTDAVCNFSM6AAAAABZYJENWOVHI2DSMVQWIX3LMV43ASLTON2WKOZSHE2DOMZSGU4DMMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

quicklisp avatar Mar 26 '25 01:03 quicklisp