Search notes:

PowerShell: function statement

The function statement creates functions.

Show definition of function

# define a function ...

function foo {
  echo 'foo'
  ls
}

# ... and show its definition:

$function:foo
Github repository about-powershell, path: /language/statement/function/show-definition.ps1

See also

Function parameters
A function's begin, process and end block
Others statements
The automatic variable $psCmdlet and the preference variable $maximumFunctionCount.
A function is an item that is exposed through the function provider.
The body (or definition) of a function (such as mkdir) can be shown with (get-command mkdir).definition.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1758199969, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/language/statement/function/index(67): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78