Noise profile (gen-profile) script exit
When running the gen-profile script I've come across an issue where it starts generating a noise profile for the first image and then the script exits abruptly without any warnings/errors.
I have traced the exit to occur at the step:
$noiseprofile $pfm -c $(cat $fit) > $flat_dat 2> $curves_dat
In particular, it is the $(cat $fit) portion that seems to result in the error - for my particular file when the exit occurs the curves file has data but the flat file remains at 0 bytes.
I can run this step manually in my bash shell and it works fine. I have tried running the script under both sh and bash, and I have tried replacing $(cat $fit) with `cat $fit` which should be equivalent at least in bash.
I have tried this with scripts in my distro's version (had to patch it up to work in the first place), in the current stable, and the git repository versions. No difference in the behaviour. I have attached the files relevant to this line.
Something about this line fails and I have run out of things I can think to try (I speak pidgen bash only).
I am trying to create noise profiles for the Pentax K-70 (at present) and the Pentax K-20 (future).