You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 16, 2025. It is now read-only.
Function definitions within non-forked subshells (including command substitutions) are silently ignored if a function by the same name exists in the main shell, so the wrong code is executed. unset -f is also silently ignored. Test script:
Forcing the subshell to be forked (by making it a background job, or by including a redirection within a command substitution) is an effective workaround.
Silently executing the wrong code under any circumstances is a bad bug, but it seems to have been in ksh93 since 1993...