bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash RFE: Goto (especially for jumping while debugging)


From: Brian J. Murrell
Subject: Re: Bash RFE: Goto (especially for jumping while debugging)
Date: Mon, 22 Sep 2008 16:37:08 -0400

On Mon, 2008-09-22 at 20:44 +0100, Richard Neill wrote:
> 

How about...

> -------------------
> #!/bin/bash
> 
> #initialisation stuff goes here.
> 
if false; then
> 
> #lots of stuff here that I want to skip.
> #Bash doesn't have a multi-line comment feature.
> #Even if it did, one can't do a multi-line comment containing
> #another multi-line comment. A good editor makes this less
> #painful, but isn't an ideal solution.
> 
fi
> 
> #stuff I want to test
> 
> exit
> 
> #stuff at the end of the script, which I don't want to run while testing.
> ----------------------

b.

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]