Revert "funced: Use variable-as-command"
This reverts commit 3253893923ff8fdb78bc200d82a9a0308c675b96. Fixes #5625.
This commit is contained in:
parent
b03c62bd29
commit
8e60ebcd34
@ -94,7 +94,7 @@ function funced --description 'Edit function definition'
|
||||
while true
|
||||
set -l checksum (__funced_md5 "$tmpname")
|
||||
|
||||
if not $editor $tmpname
|
||||
if not eval $editor $tmpname
|
||||
echo (_ "Editing failed or was cancelled")
|
||||
else
|
||||
# Verify the checksum (if present) to detect potential problems
|
||||
|
Loading…
x
Reference in New Issue
Block a user