DOCGroup / ACE_TAO

ACE and TAO
https://www.dre.vanderbilt.edu/~schmidt/TAO.html
701 stars 380 forks source link

`tao_idl` Will Create a Directory Each Time a `-o*` Option is Passed #2202

Open iguessthislldo opened 8 months ago

iguessthislldo commented 8 months ago

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:

$ 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.