Re: Syntax check for Shell Scripts



On 18 Feb., 12:03, Geppo <geppore...@xxxxxxxxxx> wrote:
Hi,
I'm new to the world of Unix Shell and I was wondering if there is a
nice IDE tool, which does automatic syntax checking (and why not
colouring) for shell scripts.

Invoke your shell programs with option -n to just let the shell do
syntax check without executing commands...

sh -n yourscript.sh

Try also options -x (and -v) to support your debugging efforts.

I am sure many editors support syntax highlighting. (I am using
vim/gvim, for example, which supports syntax coloring for more
languages and data formats than I've ever heard from. Though
it's not that easy to learn.)

Something like Eclipse or Microsoft Dev Studio (well hopefully
lighter).

I don't know of any such specifically for shell program development.

Janis

Thank you.

.



Relevant Pages

  • Re: Reintroducing fish, the friendly interactive shell
    ... Thank you for another shell resource; ... I belive I mentioned that bash provides local variables in my original ... that is proof of a completely broken syntax. ... The fish parser uses ...
    (comp.unix.shell)
  • Re: Announcing the friendly interactive shell
    ... >> shell using it interactively. ... The shell syntax is slightly ... I have not focused on syntax in fish, so I'm not saying this is what ... >> bash, for instance. ...
    (comp.unix.shell)
  • perl, powershell, syntax soup?
    ... There's a good reason for Perl's arcane syntax: it is derived from shell ... less sense, and thence by perl, where it made even less sense. ... First of all, PowerShell was a fantastic shell lang, ...
    (comp.lang.lisp)
  • Re: Ada.Command_Line and wildcards
    ... we did in fact design an Ada command language for our debugger. ... tries to build the shell expression incrementally. ... A just "pascalish/adaish" syntax of course is not a problem and indeed ...
    (comp.lang.ada)
  • [9fans] Re: 9base ports to unix (flame of byrons rc)
    ... (sorry about the lack of unicode support thorugh this interace. ... -> syntax error ... paul haahr's rc's-lovechild-with-scheme shell es uses ... Byron's shell implements rc-inconform things like `foo as ...
    (comp.os.plan9)