[MINC-users] Of clobbering

Alex Zijdenbos zijdenbos at gmail.com
Mon Mar 18 00:07:08 EDT 2013


Hi all,

I just realized that when clobbering an output file that is a symbolic
link, several (all?) minc tools will (try to) clobber the target of the
link instead of the link itself.

For example:

$ ln -s target.mnc symlink.mnc
$ mincmath -clobber -gt -const 0 <in.mnc> symlink.mnc

will overwrite target.mnc instead of symlink.mnc.

I tested this with a few tools (mincaverage, mincmath, mincmorph, minccalc,
mincresample) and all of them behave this way.

IMHO this is actually _really_ bad behaviour; so I was wondering what
others thought of this, and if this was done by design?

-- Alex


More information about the MINC-users mailing list