Given this command:
ex -sc '%!alfa' -cx file
I get this result:
sh: alfa: command not found
which is to be expected. However an unintended side effect of this is that the file is emptied and saved.
Can this command be modified so that if the external command is not found, then Vim bails instead of saving an empty file?