mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
bash: clarify print version example description (#4730)
This commit is contained in:
parent
380e7ac5b2
commit
1ce8ecd6ed
2 changed files with 34 additions and 1 deletions
33
pages.es/common/bash.md
Normal file
33
pages.es/common/bash.md
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
# bash
|
||||||
|
|
||||||
|
> Bourne-Again SHell.
|
||||||
|
> Intérprete de línea de comandos compatible con `sh`.
|
||||||
|
> Más información: <https://gnu.org/software/bash>.
|
||||||
|
|
||||||
|
- Inicia un intérprete de comandos interactivo:
|
||||||
|
|
||||||
|
`bash`
|
||||||
|
|
||||||
|
- Ejecuta un comando:
|
||||||
|
|
||||||
|
`bash -c "{{comando}}"`
|
||||||
|
|
||||||
|
- Ejecuta comandos desde un archivo:
|
||||||
|
|
||||||
|
`bash {{archivo.sh}}`
|
||||||
|
|
||||||
|
- Ejecuta comandos desde un archivo, mostrando todos los comando ejecutados en la terminal:
|
||||||
|
|
||||||
|
`bash -x {{archivo.sh}}`
|
||||||
|
|
||||||
|
- Ejecuta comandos desde un archivo, deteniéndose en el primer error:
|
||||||
|
|
||||||
|
`bash -e {{archivo.sh}}`
|
||||||
|
|
||||||
|
- Ejecuta comandos desde `stdin` (entrada estándar):
|
||||||
|
|
||||||
|
`bash -s`
|
||||||
|
|
||||||
|
- Imprime la información de la versión de bash (use `echo $BASH_VERSION` para ver sólo la versión sin la información sobre la licencia):
|
||||||
|
|
||||||
|
`bash --version`
|
|
@ -28,6 +28,6 @@
|
||||||
|
|
||||||
`bash -s`
|
`bash -s`
|
||||||
|
|
||||||
- Print the version information of bash (use `echo $BASH_VERSION` to show just the version string):
|
- Print the version information of bash (use `echo $BASH_VERSION` to show just the version without license information):
|
||||||
|
|
||||||
`bash --version`
|
`bash --version`
|
||||||
|
|
Loading…
Add table
Reference in a new issue