help-bash
[Top][All Lists]
Advanced

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

Re: Bash trap is to mean just some certain sequential lines


From: Greg Wooledge
Subject: Re: Bash trap is to mean just some certain sequential lines
Date: Sun, 16 Jul 2023 22:37:52 -0400

On Mon, Jul 17, 2023 at 09:32:05AM +0700, Budi wrote:
> How can we have Bash trap meaning some certain sequential code lines
> only not for the rest of script ?

Didn't I already answer this one?

Set the trap.

Insert your lines of code.

Remove the trap.



reply via email to

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