From e1b4e3ac9f7a903a6318da91fe1ae8ea22b44b7f Mon Sep 17 00:00:00 2001 From: vlad Date: Thu, 6 Apr 2023 12:23:31 -0700 Subject: [PATCH] Improve compatibility with bash 3. What are you doing apple?! --- ⚡ | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/⚡ b/⚡ index a2fcefc..f755cf3 100644 --- a/⚡ +++ b/⚡ @@ -16,10 +16,10 @@ main() { } redefine-functions-defined-with-selector-16() { - for function in $(compgen -c $(printf "⚡\uFE0F")); do + for function in $(compgen -c $(printf "⚡\xEF\xB8\x8F")); do original_definition="$(typeset -f $function)" - eval "${original_definition//$(printf "⚡\uFE0F")/⚡}" - unset $function + eval "${original_definition//$(printf "⚡\xEF\xB8\x8F")/⚡}" + unset -f $function done }