La commande set -o

Fermé
yuri648 Messages postés 677 Date d'inscription mardi 30 décembre 2008 Statut Membre Dernière intervention 20 mai 2015 - 5 oct. 2010 à 17:23
yuri648 Messages postés 677 Date d'inscription mardi 30 décembre 2008 Statut Membre Dernière intervention 20 mai 2015 - 6 oct. 2010 à 12:15
Bonjour,

est ce que vou pouvez m'expliquer la commande
set -o
voici son resultat

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

merci

A voir également:

2 réponses

lami20j Messages postés 21331 Date d'inscription jeudi 4 novembre 2004 Statut Modérateur, Contributeur sécurité Dernière intervention 30 octobre 2019 3 569
Modifié par lami20j le 5/10/2010 à 17:26
Salut,

Tape help set
Ce que tu vois en fait ce n'est pas son résultat mais ce que tu peux utiliser comme argument pour l'option -o

lami20j@debian-acer:~/iso$ help set 
set: set [--abefhkmnptuvxBCHP] [-o option-name] [arg ...] 
    Set or unset values of shell options and positional parameters. 
     
    Change the value of shell attributes and positional parameters, or 
    display the names and values of shell variables. 
     
    Options: 
      -a  Mark variables which are modified or created for export. 
      -b  Notify of job termination immediately. 
      -e  Exit immediately if a command exits with a non-zero status. 
      -f  Disable file name generation (globbing). 
      -h  Remember the location of commands as they are looked up. 
      -k  All assignment arguments are placed in the environment for a 
          command, not just those that precede the command name. 
      -m  Job control is enabled. 
      -n  Read commands but do not execute them. 
      -o option-name 
          Set the variable corresponding to option-name: 
              allexport    same as -a 
              braceexpand  same as -B 
              emacs        use an emacs-style line editing interface 
              errexit      same as -e 
              errtrace     same as -E 
              functrace    same as -T 
              hashall      same as -h 
              histexpand   same as -H 
              history      enable command history 
              ignoreeof    the shell will not exit upon reading EOF 
              interactive-comments 
                           allow comments to appear in interactive commands 
              keyword      same as -k 
              monitor      same as -m 
              noclobber    same as -C 
              noexec       same as -n 
              noglob       same as -f 
              nolog        currently accepted but ignored 
              notify       same as -b 
              nounset      same as -u 
              onecmd       same as -t 
              physical     same as -P 
              pipefail     the return value of a pipeline is the status of 
                           the last command to exit with a non-zero status, 
                           or zero if no command exited with a non-zero status 
              posix        change the behavior of bash where the default 
                           operation differs from the Posix standard to 
                           match the standard 
              privileged   same as -p 
              verbose      same as -v 
              vi           use a vi-style line editing interface 
              xtrace       same as -x


GNU/Linux:Linux is Not Ubuntu! Quel linux choisir ne veut pas dire votre Distribution préférée,
106485010510997108
1