Revert "funced: Use variable-as-command"

This reverts commit 3253893923.

Fixes #5625.
This commit is contained in:
Fabian Homborg 2019-02-07 09:47:15 +01:00
parent b03c62bd29
commit 8e60ebcd34

View file

@ -94,7 +94,7 @@ function funced --description 'Edit function definition'
while true while true
set -l checksum (__funced_md5 "$tmpname") set -l checksum (__funced_md5 "$tmpname")
if not $editor $tmpname if not eval $editor $tmpname
echo (_ "Editing failed or was cancelled") echo (_ "Editing failed or was cancelled")
else else
# Verify the checksum (if present) to detect potential problems # Verify the checksum (if present) to detect potential problems