What version of Neo4j? though I suspect this shouldnt be of issue but I am unable to replicate using Neo4j 4.1.0 and on a ubuntu os.
I added a ;
as the final character to the cypher statement and thus the last 3 line looks like
tail -3 test
SET fos.name = f.name, fos.w = f.w
MERGE (citation)<-[:FOS_DETAILS]-(fos)
);
and my file has 22 lines, as evidence
wc -l test
22 test
and yet
cat test | ./cypher-shell
neo4j@neo4j-lg:~/single/instance1/neo4j-enterprise-4.1.0/bin$
i.e. no error is logged?