f00.sh -x
is how you debug bash scripts.

On Sun, 28 Sep 2003, Joel Hammer wrote:

> I do not have any good debugging tools for bash, although I guess they
> exist. A most annoying part of bash is an error on line 3 is reported
> as an error on the last line of the file. Not much help. This is why,
> when I work with a large bash script, I only modify one line or two
> lines at a time before I test it.
>
> This syntax thing works for other languages, like html.
>
> To see what else is available, in vi(m):
> :help syntax
>
> Joel
>
> On Sun, Sep 28, 2003 at 05:04:35PM -0700, Ted Ozolins wrote:
> > Joel Hammer wrote:
> > > You are missing an ending quote in line 18.
> > >
> > > Now, you might ask, how did I find this?
> > >   vi .profile
> > >   :set syntax=sh
> > >   :syntax on
> > >
> > > Joel
> > Dang! I like the way that works. Definately entered in my notes, Thank you.
> >
> > --
> > Ted Ozolins (VE7TVO)
> > Westbank, B. C.
> >
> > _______________________________________________
> > Linux-users mailing list
> > [EMAIL PROTECTED]
> > Unsubscribe/Suspend/Etc -> http://mail.linux-sxs.org/mailman/listinfo/linux-users
> _______________________________________________
> Linux-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe/Suspend/Etc -> http://mail.linux-sxs.org/mailman/listinfo/linux-users
>

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J Friedman                                [EMAIL PROTECTED]
Linux Step-by-step & TyGeMo                  http://netllama.ipfox.com
_______________________________________________
Linux-users mailing list
[EMAIL PROTECTED]
Unsubscribe/Suspend/Etc -> http://mail.linux-sxs.org/mailman/listinfo/linux-users

Reply via email to