I'm trying to show the following statement from this answer
$$f_* \mathscr{H}om_X(A,\;B) \cong \mathscr{H}om_Y(f_* A,\; f_* B)$$
where $ f:X\rightarrow Y$ is a map of topological spaces and $ A,B$ are sheaves on $ X $.
I must be having a misunderstanding here, but I can't see how this is true. Suppose $ Y $ is a singleton. Take global sections. The left side is $ \rm Hom_X(A,B) $, the group of morphisms from $ A $ to $ B $. The right side is $\rm Hom(A(X), B(X))$, the group of group homomorphisms from $ A(X) $ to $ B(X) $. Are these two really isomorphic in general? There must be a flaw in my reasoning.