hello, anyone has suggestions on this? regards Il giorno lun 2 set 2019 alle ore 15:59 Aryn Starr < whereislelouch@icloud.com> ha scritto: > With these functions: > > ``` > fcm () { > # Function for selecting a command interactively > echo ${(F)commands} | fzf > } > > teec () { > # Dumbed down version of a function that both echoes and copies to > clipboard. (Current toy version just echoes.) > local out="$( print -r -- "$out" > } > ``` > > I can do `fcm | teec` and it works correctly. > However, if I change `teec` to this: > > ``` > teec () { > echo 'echo hi' | { eval "$( local out="$( print -r -- "$out" > } > ``` > > Then running `fcm | teec` hangs (after printing `hi`) and doesn’t even get > interrupted with ^D or ^C. > I don’t understand why these problems occur at all, and I have no idea how > to go about fixing them ...