Hi Yang,
Yes, that error message is incorrect, it should say "... no perms
to overwrite ... SUMA/Sub_SUMA_lh.spec". We will fix that, thanks.
There are two things that lead to this failure, I believe. One is
that your output file (SUMA/Sub_SUMA_lh.spec) already exists. And
the other is that you have the "noclobber" variable set. That error
message is printed because a redirection to the output file fails.
Since you have shown that your output file exists, and that you
get the error message, you must have noclobber set in your
~/.cshrc file (or someplace similar).
To verify this, enter the following command:
if ( $?noclobber ) echo yes
If the word "yes" is printed after this, it means that variable is
indeed set.
------------------
To get around this, since you do not allow redirection to overwrite
your files, please move the existing .spec files into some backup
directory (or delete them), and then re-run the script.
------------------
I will add a more specific error message for the case where the
"noclobber" variable prevents the update to an existing spec file.
Thanks,
- rick