Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
CMD_NULL macro (macrosmanager.cpp)
stahta01:
--- Quote from: pece on October 05, 2009, 04:14:22 pm ---
--- Quote from: stahta01 on October 05, 2009, 02:27:17 pm ---Did you try it?
--- Code: ---dir > NUL
--- End code ---
Does not error out for me.
See http://en.wikipedia.org/wiki//dev/null
Tim S.
--- End quote ---
Tim, please read the whole thread. You should test it with "dir > cmd /c NUL"
as this is what $(CMD_NULL) macro expands to, on windows, curently.
(Should expand to plain "NUL" not "cmd /c NUL").
Przemek
--- End quote ---
You only stated the issue clearly in this message; I had no idea what you were saying in about 1 in 3 sentences.
Edit: And this does work. So, another possible solution.
"cmd /c > NUL dir"
Tim S.
thomas:
He's right with his first point, though. I admit that I had difficulties understanding, too, but he's right :)
The other thing (adding sh under Unix) is not necessary, as it works fine with the default shell which is user-configurable.
pece:
--- Quote from: thomas on October 06, 2009, 12:05:35 pm ---He's right with his first point, though. I admit that I had difficulties understanding, too, but he's right :)
The other thing (adding sh under Unix) is not necessary, as it works fine with the default shell which is user-configurable.
--- End quote ---
C::B doesn't have macro for invoking command interpreter. Hence $(CMD) would be usefull.
Pre(post) build steps could benefit from this. And 'sh' is most neutral on non-windowses.
Or it could just yield the value that user has configured in default shell setting.
Przemek
Navigation
[0] Message Index
[*] Previous page
Go to full version