• [^] # Re: cp -s == ln -s

    Posté par . En réponse à la dépêche FreeBSD 10.3. Évalué à 5.

    D'ailleurs, c'est décrit dans le commit:

    Implement '-s' to copy as symlink, similar to the current -l link(2) handling.

    This is also implemented in at least GNU coreutils cp.

    Avec une petite amélioration au passage:

    While here also improve the '-l' handling to not open(2) the source file as
    it does not actually need the descriptor.