$ tao_idl -o x -o y -o z
IDL: No input files
$ ls
x y z
Now obviously you really shouldn't be passing multiple -o options to tao_idl, but at the same time tao_idl shouldn't be doing this. It should just take the last one and use that, ideally only making the directory right before it writes the files there. I might try to fix this at some point, but I'm filing this issue mostly just to document it.
As stated in the title,
tao_idl
will immediately create the directory specified by an-o
option and its alternative forms:https://github.com/DOCGroup/ACE_TAO/blob/d055988bd78983e7a2fcb4355fae8774f358993c/TAO/TAO_IDL/be/be_global.cpp#L3033-L3037
This means it can do this:
Now obviously you really shouldn't be passing multiple
-o
options totao_idl
, but at the same timetao_idl
shouldn't be doing this. It should just take the last one and use that, ideally only making the directory right before it writes the files there. I might try to fix this at some point, but I'm filing this issue mostly just to document it.