mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
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.
This commit is contained in:
parent
79642995f1
commit
a750b28eb4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue