This is not a problem with gpg :-) Your script is trying to run the gpg binary file twice. The first call tries to decode the file:
gpg --output "$outputF" --decrypt "$encryptedF"
Since no means of entering a passphrase have been specified, gpg tries to read the passphrase from the console. What happens now depends on your gpg configuration, ksh behavior, etc., but I suspect that the interaction with STDIN has been crippled in some way, which leads to an EOF error.
Solution to your problem: you must add the source of the passphrase to the decryption call:
echo "PASSPHRASE" | gpg --passphrase-fd 0 --output "$outputF" --decrypt "$encryptedF"
source share