IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Shell et commandes GNU Discussion :

Commande rm précédée d'un tiret ?


Sujet :

Shell et commandes GNU

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Nouveau candidat au Club
    Profil pro
    Inscrit en
    Juin 2013
    Messages
    1
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2013
    Messages : 1
    Par défaut Commande rm précédée d'un tiret ?
    Dans un fichier makefile, il y a une commande du type:

    -rm $(BINDIR)/dir_name

    Que signifie le tiret devant la commande rm (remove) ?
    Merci pour votre aide

  2. #2
    Expert confirmé Avatar de disedorgue
    Homme Profil pro
    Ingénieur intégration
    Inscrit en
    Décembre 2012
    Messages
    4 349
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur intégration
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Décembre 2012
    Messages : 4 349
    Par défaut
    bonjour,

    man make:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
           Makefile command lines can have one or more of the following prefixes: a hyphen ( ’-’ ), an at sign (@), or a plus sign ( ’+’  ).  These  shall
           modify the way in which make processes the command. When a command is written to standard output, the prefix shall not be included in the output.
     
           -      If  the command prefix contains a hyphen, or the -i option is present, or the special target .IGNORE has either the current target as a pre-
                  requisite or has no prerequisites, any error found while executing the command shall be ignored.
     
           @      If the command prefix contains an at sign and the make utility command line -n option is not specified, or the -s option is present, or  the
                  special target .SILENT has either the current target as a prerequisite or has no prerequisites, the command shall not be written to standard
                  output before it is executed.
     
           +      If the command prefix contains a plus sign, this indicates a makefile command line that shall be executed even if -n, -q, or  -t  is  speci-
                  fied.

  3. #3
    Expert confirmé
    Homme Profil pro
    Développeur informatique en retraite
    Inscrit en
    Avril 2008
    Messages
    2 102
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Côtes d'Armor (Bretagne)

    Informations professionnelles :
    Activité : Développeur informatique en retraite

    Informations forums :
    Inscription : Avril 2008
    Messages : 2 102
    Par défaut
    En gros, ça veut dire que si ça marche pô, c'est pô grave et tu peux continuer...

Discussions similaires

  1. Réponses: 3
    Dernier message: 22/11/2012, 11h10
  2. commande "./configure" suivi d'1 ou 2 tirets ?
    Par marveljojo75 dans le forum Administration système
    Réponses: 3
    Dernier message: 22/12/2008, 11h44
  3. le tiret ("-") de la commande PS
    Par sebhm dans le forum Administration système
    Réponses: 3
    Dernier message: 22/07/2008, 09h03
  4. Réponses: 3
    Dernier message: 02/09/2002, 18h49
  5. Réponses: 2
    Dernier message: 11/08/2002, 21h27

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo