Here is the exact command
bcftools norm -f /path/hg19/ucsc.hg19.fasta -c s ./user1.vcf -o ../fixed/user2.vcf
When I run it in the shell directly it works fine.
When i put it into a bash script it fails
The error message comes from bcftools itself
[main] Unrecognized command.
Script is encoded in ascii:
#!/bin/bash
bcftools norm -f /path/hg19/ucsc.hg19.fasta -c s ./user1.vcf -o ../fixed/user2.vcf
So bcftools accept argument when received directly from prompt but not within the script. It is like spaces from prompt and from script are not interpreted the same way