From a750b28eb44c794511e24c725ada57de0e9d25b2 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Sat, 10 Sep 2022 17:42:16 +0200 Subject: [PATCH] funced: Use a read prompt *string* This used a prompt command, but since the prompt was interpolated and included a `?` it would be run as a glob without qmark-noglob. Since it's simpler to pass a prompt string, just do that. --- share/functions/funced.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/funced.fish b/share/functions/funced.fish index 5fa339115..ca2218628 100644 --- a/share/functions/funced.fish +++ b/share/functions/funced.fish @@ -120,7 +120,7 @@ function funced --description 'Edit function definition' echo # add a line between the parse error and the prompt set -l repeat set -l prompt (_ 'Edit the file again? [Y/n]') - read -p "echo $prompt\ " response + read -P "$prompt " response if test -z "$response" or contains $response {Y,y}{E,e,}{S,s,} continue