replic icon indicating copy to clipboard operation
replic copied to clipboard

Application asks "Do you want to quit ? [Y]/n" when piping into the repl

Open fstamour opened this issue 3 years ago • 5 comments

For testing an unnamed book application I wrote something like this:

#!/usr/bin/env bash

cat <<EOF |
locale
stock
locale fr_FR
stock
EOF
./bookshops -i

Which resulted in:

image

fstamour avatar Dec 23 '22 04:12 fstamour

ACK. I'll need to give this a look, in a few days.

an unnamed book application

:rofl:

(ps: happy family moments :christmas_tree: :gift: )

vindarel avatar Dec 25 '22 10:12 vindarel

Supposedly we have:

;; config.lisp in openbookstore's root directory
(setf replic:*confirm-exit* nil)

Or in ~/.config/.replic.conf

[default]
confirm-exit = false

but I can't see their effect.

vindarel avatar Dec 25 '22 10:12 vindarel

The configuration setting works fine for the replic app itself. This is an issue with OpenBookStore which doesn't read it.

I'll keep the issue here, replic should probably read its config file when used from another app.

vindarel avatar Jan 04 '23 14:01 vindarel

I pushed a fix to replic and to OpenBookStore.

Try with this:

# ~/.replic.conf
[default]
 confirm-exit = false

vindarel avatar Jan 04 '23 17:01 vindarel

bummer. You also have the quit command which does not ask for confirmation.

vindarel avatar Jan 04 '23 17:01 vindarel