Corrigé 7.7 Options du shell Bash

1.

[tux]$ set -o 
allexport       off 
braceexpand     on 
emacs           on 
errexit         off 
errtrace        off 
functrace       off 
hashall         on 
histexpand      on 
history         on 
ignoreeof       off 
interactive-comments    on 
keyword         off 
monitor         on 
noclobber       off 
noexec          off 
noglob          off 
nolog           off 
notify          off 
nounset         off 
onecmd          off 
physical        off 
pipefail        off 
posix           off 
privileged      off 
verbose         off 
vi              off 
xtrace          off 

2.

[tux]$ PS4="DEBOGAGE>>> " 

3.

[tux]$ set -o xtrace 

Ou :

[tux]$ set -x 

4.

[tux]$ cd /etc ; ls -d X* 
DEBOGAGE>>> cd /etc 
DEBOGAGE>>> ls --color=tty -d X11 
X11 

L’option xtrace affiche l’interprétation shell (alias, caractères...

couv_TP4BLIN.png

Découvrez 

le livre :

Aussi inclus dans nos :

Précédent
Corrigé 7.6 Exécution et substitution de commandes
Suivant
Introduction