1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 16:42:08 +02:00
tldr/pages.fr/common/dash.md
2021-10-27 20:00:12 +01:00

654 B

dash

Debian Almquist SHell, une implémentation de sh moderne, conforme à POSIX (non compatible avec Bash). Plus d'informations : https://manned.org/dash.

  • Démarre une session shell interactive :

dash

  • Exécute une commande, puis termine la session :

dash -c "{{commande}}"

  • Exécute un script :

dash {{chemin/vers/le/script.sh}}

  • Exécute un script en affichant chaque commande avant de l'exécuter :

dash -x {{chemin/vers/le/script.sh}}

  • Exécute un script en s'arrêtant à la première erreur :

dash -e {{chemin/vers/le/script.sh}}

  • Lit et exécute des commandes depuis l'entrée standard stdin :

dash -s