开发者

Tool for Shell systax errors in windows?

I am writing my shell scripts using notepad++ editor in windows xp but I can n开发者_C百科ot check for systax error in this editor. Is there any tool which can check the syntax of the shell scripts in windows xp?

Thanks


Try Shel script editor for windows http://www.editrocket.com/features/shellscript_editor.html


If you mean batch files, then it's getting fairly difficult. My syntax highlighter can show me some things, e.g. using %f instead of %%f but not much else I could do wrong. That is mostly because the syntax for batch files isn't really described by a formal grammar but instead parsed in a more ad-hoc manner.

Just learn to write correct code, in that case. No editor will be of much help, especially given the subtleties that can arise with batch files. Or do you see the error in the following code?

@echo off
for %%x in (World,Moon) do (
    echo Hello %%x :-) - A good morning to you.
)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜