$show » History » Version 2
Per Amundsen, 08/11/2015 10:31 AM
| 1 | 1 | Per Amundsen | _Added in 1.9.1_ |
|---|---|---|---|
| 2 | |||
| 3 | *$show* |
||
| 4 | |||
| 5 | 2 | Per Amundsen | Returns [[$false]] if a command is prefixed with a "." to make it quiet, otherwise returns [[$true]]. |
| 6 | 1 | Per Amundsen | |
| 7 | *Example* |
||
| 8 | |||
| 9 | <pre> |
||
| 10 | ; Create an alias. |
||
| 11 | alias Example { |
||
| 12 | echo -ag $iif($show,show,don't show) |
||
| 13 | } |
||
| 14 | |||
| 15 | ; Call /example normally. |
||
| 16 | /example |
||
| 17 | |||
| 18 | ; Call /example with a "." prefix. |
||
| 19 | /.example |
||
| 20 | </pre> |