GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  BLOCK (1)

NAME

block -- temporarily block delivery of events

    Synopsis

block [OPTIONS...]

    Description

block prevents events triggered by fish or the emit command from being delivered and acted upon while the block is in place.

In functions, block can be useful while performing work that should not be interrupted by the shell.

The block can be removed. Any events which triggered while the block was in place will then be delivered.

Event blocks should not be confused with code blocks, which are created with begin, if, while or for

The following parameters are available:

o -l or --local Release the block automatically at the end of the current innermost code block scope
o -g or --global Never automatically release the lock
o -e or --erase Release global block

    Example

Create a function that listens for events function --on-event foo foo; echo ’foo fired’; end

  Block the delivery of events
block -g

emit foo
  No output will be produced

block -e
  ’foo fired’ will now be printed

Search for    or go to Top of page |  Section 1 |  Main Index


Version 2.2.0 BLOCK (1) Mon Jul 6 2015

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.