Improve compatibility with bash 3. What are you doing apple?!
This commit is contained in:
6
⚡
6
⚡
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user