From a27fcec564dff76b65cbc1c2ca8d957553a3acb4 Mon Sep 17 00:00:00 2001 From: phoebos Date: Thu, 27 Oct 2022 09:01:59 +0200 Subject: [PATCH] kiss: use Ctrl+D to abort prompt (#105) EOF is defined by POSIX to cause read to return an error, and works with every shell while SIGINT (Ctrl+C) does not (eg. with yash). Co-authored-by: phoebos Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/105 Co-authored-by: phoebos Co-committed-by: phoebos --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiss b/kiss index 91c2256..bcc2dc8 100755 --- a/kiss +++ b/kiss @@ -93,7 +93,7 @@ tmp_file_copy() { prompt() { null "$1" || log "$1" - log "Continue?: Press Enter to continue or Ctrl+C to abort" + log "Continue?: Press Enter to continue or Ctrl+D to abort" # korn-shell does not exit on interrupt of read. equ "$KISS_PROMPT" 0 || read -r _ || exit 1