So when i run that script from shell, everything runs fine (understandable, as it runs not from workbench, so IconX didn't handle it).
But when i run it from workbench, then while it all runs fine too, it also bring me some empty window from IconX, which i want to hide. I know it should be something trivial, like pointing out in default tool not just "C:IconX" , but something with run >NIL: or co, but i just can't make it work.
Any ideas ? (without creating another scripts of course)
To run your command, did you use run >nil: mycommand.exe ?
As i say its IconX which is problem. Its output empty shell window when i use it from workbench. Using "run >nil: C:IconX" in the default tool tab not works, saying "please insert volume run >NIL:". Putting the same line to the ".." also didn't help and give the same error.
@All I do check IconX doc, and find that it have tooltype WINDOW, so i can specify window, name, size, etc. But something like WINDOW=CON:0/0/0/0/ didn't work sadly.
The empty output window does not come from IconX. It comes from vim.
There's probably no output window when started from shell because shell *is* the output window. Since you start it from workbench the shell output is created.
@Capehill When i just do in shell "gvim >ram:test", and then exit from vim, then i have in ram: test file of 0 bytes.
But when i run it from shell i have no output window (as shell is output window as others says), but when i run it from WB (and does not matter how, even just pure binary without icon by dbl-click), it always create me "Output window" with nothing in.
That for sure something in the VIM's initialisation code in amigaos4 ifdefs (or in general amiga ifdefs, just on amigaos4 it reacts like this) from the original os_amiga.c:
I think I have a fix for this. It's not a problem in the Amiga specific parts of Vim, it's about the general startup procedure of Vim that needs to be adapted so that we can support both console mode and GUI mode. And still support the possibility to start a shell from within the GUI version for '!' operations.