mirror of
https://github.com/tldr-pages/tldr
synced 2026-08-26 14:13:36 +01:00
function: update Spanish translation
Updated function documentation with Spanish examples and added details on defining functions without the 'function' keyword.
This commit is contained in:
@@ -1,12 +1,21 @@
|
||||
# function
|
||||
|
||||
> Define una función.
|
||||
> Vea también: `declare`, `unset`.
|
||||
> Más información: <https://www.gnu.org/software/bash/manual/bash.html#Shell-Functions>.
|
||||
|
||||
- Define una función con el nombre especificado:
|
||||
|
||||
`function {{func_name}} { {{echo "Contenido de la función aquí"}}; }`
|
||||
`function {{nombre_funcion}} { {{echo "Contenido de la función aquí"}}; }`
|
||||
|
||||
- Ejecuta una función llamada `func_name`:
|
||||
|
||||
`func_name`
|
||||
|
||||
- Define una función sin la palabra clave `function`:
|
||||
|
||||
`{{func_name}}() { {{echo "Contenido de la función aquí"}}; }`
|
||||
|
||||
- Muestra la ayuda:
|
||||
|
||||
`help function`
|
||||
|
||||
Reference in New Issue
Block a user