If it's just for commenting out multi-line commands, you could wrap
them in a subshell with the first command being exit:

( exit
  commands or comments
)

Regards,
- Robert


On Fri, Aug 17, 2012 at 7:13 PM, Tim <[email protected]> wrote:
>
> if false; then
>   {commands}
> fi
>
> ??
>
>
> tim
>
>
> On Fri, Aug 17, 2012 at 04:09:21PM -0700, Galen Seitz wrote:
>> Hi,
>>
>> Is there some sort of Bourne or Bash shell equivalent to #if 0 ...
>> #endif?  I've got a group of commands in my script that take a long
>> time to execute, so I'd like to temporarily disable them.
>>
>> thanks,
>> galen
>> --
>> Galen Seitz
>> [email protected]
>>
>> _______________________________________________
>> PLUG mailing list
>> [email protected]
>> http://lists.pdxlinux.org/mailman/listinfo/plug
> _______________________________________________
> PLUG mailing list
> [email protected]
> http://lists.pdxlinux.org/mailman/listinfo/plug
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to