• [^] # Re: Source

    Posté par . En réponse au message source dans fichier interfaces. Évalué à 1. Dernière modification le 26 mai 2016 à 14:10.

    bonsoir,

    source est pourtant documenté dans le man interfaces :

     Lines beginning with "source" are used to include stanzas from other
     files, so configuration can be split into many files. The word
     "source" is followed by the path of file to be sourced. Shell wild‐
     cards can be used. (See wordexp(3) for details.)
     Similarly, "source-directory" keyword is used to source multiple files
     at once, without specifying them individually or using shell globs.
     Additionally, when "source-directory" is used, names of the files are
     checked to match the following regular expression: ^[a-zA-Z0-9_-]+$.
     In other words, the names must consist entirely of ASCII upper- and
     lower-case letters, ASCII digits, ASCII underscores, and ASCII minus-
     hyphens. In the directory path, shell wildcards may be used as well.
     When sourcing files or directories, if a path doesn't have a leading
     slash, it's considered relative to the directory containing the file
     in which the keyword is placed. In the example above, if the file is
     located at /etc/network/interfaces, paths to the included files are
     understood to be under /etc/network.

    J'ai essayé avec source et source-directory, chemin complet et relatif : nada !