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
On 3 Jan 2018, at 18:03, dana <dana@xxxxxxx> wrote:
The way i had handled this in the _busybox function is:
_cmd_variant[${words[1]}]=busybox _normal
That way you can temporarily override what _pick_variant thinks the actual
variant is. This seems to work quite well, but i did feel some guilt about it,
since as you mention it's circumventing the interface.
I was playing with this some more to see if i could come up with a better way
and actually discovered a problem with the method i described: it is not a
temporary override. Apparently pre-command re-assignment of array members
doesn't work the same way it does with scalars — zsh doesn't put the value back
the way it was when it's done executing the command. I assume the same code is
involved here as with the issue i brought up in workers/42097....
I am not actually sure if it is related (workers/42097 = my #4), but maybe. Didn't look into it much.
The text was updated successfully, but these errors were encountered:
(workers/42238 [mentioned])
I am not actually sure if it is related (workers/42097 = my #4), but maybe. Didn't look into it much.
The text was updated successfully, but these errors were encountered: