github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/docs/optional/sleep.md (about)

     1  # `sleep`
     2  
     3  > Suspends the shell for a number of seconds
     4  
     5  ## Description
     6  
     7  `sleep` is an optional builtin which suspends the shell for a defined number
     8  of seconds.
     9  
    10  ## Usage
    11  
    12  ```
    13  sleep integer
    14  ```
    15  
    16  ## Examples
    17  
    18  ```
    19  » sleep 5
    20  # murex sleeps for 5 seconds
    21  ```
    22  
    23  ## Detail
    24  
    25  `sleep` is very simplistic - particularly when compared to its GNU coreutil
    26  (for example) counterpart. If you want to use the `sleep` binary on Linux
    27  or similar platforms then you will need to launch with the `exec` builtin:
    28  
    29  ```
    30  » exec sleep 5
    31  ```
    32  
    33  ## See Also
    34  
    35  * [`exec`](../commands/exec.md):
    36    Runs an executable
    37  * [`source`](../commands/source.md):
    38    Import Murex code from another file of code block
    39  * [`time`](../commands/time.md):
    40    Returns the execution run time of a command or block
    41  
    42  <hr/>
    43  
    44  This document was generated from [builtins/optional/time/sleep_doc.yaml](https://github.com/lmorg/murex/blob/master/builtins/optional/time/sleep_doc.yaml).