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